[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 2869bc25e4 085/153: Create a terminal personali
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 2869bc25e4 085/153: Create a terminal personality for SwiftForth. |
Date: |
Sat, 29 Jan 2022 08:02:20 -0500 (EST) |
branch: elpa/forth-mode
commit 2869bc25e4de584b8c4916acf3d72cd0c76fe2d6
Author: Lars Brinkhoff <lars@nocrew.org>
Commit: Lars Brinkhoff <lars@nocrew.org>
Create a terminal personality for SwiftForth.
---
backend/swiftforth.el | 5 +++--
backend/swiftforth.fth | 24 ++++++++++++++++++++++++
2 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/backend/swiftforth.el b/backend/swiftforth.el
index 4e4338fc87..b681165b31 100644
--- a/backend/swiftforth.el
+++ b/backend/swiftforth.el
@@ -1,4 +1,5 @@
-(forth-interaction-send ":noname 100 100 ; 'get-size !")
-(forth-interaction-send ":noname 0 0 ; 'get-xy !")
+(require 'forth-interaction-mode)
+
+(forth-interaction-send (concat "include " forth-backend-dir
"/swiftforth.fth"))
(provide 'swiftforth)
diff --git a/backend/swiftforth.fth b/backend/swiftforth.fth
new file mode 100644
index 0000000000..e93425de83
--- /dev/null
+++ b/backend/swiftforth.fth
@@ -0,0 +1,24 @@
+: 2null 0 0 ;
+: big-size 200 100 ;
+
+create winning-personality
+ 4 cells , 19 , 0 , 0 ,
+ ' noop , ' noop , ' noop ,
+ 'emit @ ,
+ 'type @ ,
+ '?type @ ,
+ 'cr @ ,
+ ' noop , \ page
+ ' drop , \ attribute
+ 'key @ ,
+ 'key? @ ,
+ 'ekey @ ,
+ 'ekey? @ ,
+ 'akey @ ,
+ 'pushtext @ ,
+ ' 2drop , \ at-xy
+ ' 2null , \ get-xy
+ ' big-size , \ get-size
+ 'accept @ ,
+
+winning-personality open-personality
- [nongnu] elpa/forth-mode b69527cdd2 084/153: SwiftForth shouldn't concern itself with terminal settings., (continued)
- [nongnu] elpa/forth-mode b69527cdd2 084/153: SwiftForth shouldn't concern itself with terminal settings., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 90c1ec5293 032/153: GitHub README., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 813620cae9 034/153: Run hooks before starting an interactive Forth session., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6dcd29382f 015/153: Make the forth-interaction-send callback optional., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 68d740e7ae 042/153: Empty files are not block files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 745e1d8388 039/153: Document key bindings., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5df1f95c26 044/153: Speedbar support., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 794c9efd01 021/153: Use require and provide instead of load, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9812d1decd 114/153: Use /interperter to setup terminal personalty, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5aa3a700b0 016/153: Improve killing an interactive Forth session., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 2869bc25e4 085/153: Create a terminal personality for SwiftForth.,
ELPA Syncer <=
- [nongnu] elpa/forth-mode 8d1d8ea795 099/153: Re-add test for 'syntax-propertize-function., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 55de74bb4f 033/153: Query Forth session about defined words., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 44dd013096 059/153: Remove terminal escape sequences from strings returned from Forth., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 399fd00921 055/153: Fix killing interactive Forth., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 56bbc06a16 079/153: Error out if byte compilation fails in Emacs 23., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 531c9e11e2 023/153: Add autoload cookie to extension configuration, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 847481f866 061/153: Tweak window handling., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5a08c82adb 111/153: Improve word movement commands inside symbols., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 50a7eb4bf1 094/153: Handle indentation of : and with smie instead of syntax-table., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 45f3f20f18 104/153: Make indentation case-insensitive, ELPA Syncer, 2022/01/29