From 7e86c01285e50008148bb359c61f64640a812303 Mon Sep 17 00:00:00 2001 From: Yaroslav Kolomiiets Date: Thu, 18 Aug 2016 15:23:32 +0300 Subject: acme: handle Home, End keys --- dis/acme.dis | Bin 24374 -> 24374 bytes dis/acme/acme.dis | Bin 24374 -> 24374 bytes dis/acme/buff.dis | Bin 3426 -> 3426 bytes dis/acme/col.dis | Bin 9113 -> 9113 bytes dis/acme/dat.dis | Bin 587 -> 587 bytes dis/acme/disk.dis | Bin 1501 -> 1501 bytes dis/acme/ecmd.dis | Bin 15443 -> 15448 bytes dis/acme/edit.dis | Bin 6827 -> 6827 bytes dis/acme/elog.dis | Bin 3064 -> 3064 bytes dis/acme/exec.dis | Bin 19072 -> 19072 bytes dis/acme/file.dis | Bin 3490 -> 3490 bytes dis/acme/frame.dis | Bin 13561 -> 13561 bytes dis/acme/fsys.dis | Bin 9031 -> 9031 bytes dis/acme/graph.dis | Bin 633 -> 633 bytes dis/acme/gui.dis | Bin 1598 -> 1598 bytes dis/acme/look.dis | Bin 9778 -> 9790 bytes dis/acme/regx.dis | Bin 11415 -> 11415 bytes dis/acme/row.dis | Bin 12127 -> 12133 bytes dis/acme/scrl.dis | Bin 1984 -> 1984 bytes dis/acme/text.dis | Bin 19148 -> 19443 bytes dis/acme/time.dis | Bin 804 -> 804 bytes dis/acme/util.dis | Bin 5715 -> 5721 bytes dis/acme/wind.dis | Bin 8655 -> 8660 bytes dis/acme/xfid.dis | Bin 15877 -> 15900 bytes 24 files changed, 0 insertions(+), 0 deletions(-) (limited to 'dis') diff --git a/dis/acme.dis b/dis/acme.dis index 2695ae4b..1cecd618 100644 Binary files a/dis/acme.dis and b/dis/acme.dis differ diff --git a/dis/acme/acme.dis b/dis/acme/acme.dis index 2695ae4b..1cecd618 100644 Binary files a/dis/acme/acme.dis and b/dis/acme/acme.dis differ diff --git a/dis/acme/buff.dis b/dis/acme/buff.dis index ab4080fa..b0ce8cd2 100644 Binary files a/dis/acme/buff.dis and b/dis/acme/buff.dis differ diff --git a/dis/acme/col.dis b/dis/acme/col.dis index 13095a98..aa5ef7a9 100644 Binary files a/dis/acme/col.dis and b/dis/acme/col.dis differ diff --git a/dis/acme/dat.dis b/dis/acme/dat.dis index 20c9d895..364d37cc 100644 Binary files a/dis/acme/dat.dis and b/dis/acme/dat.dis differ diff --git a/dis/acme/disk.dis b/dis/acme/disk.dis index a68f0c29..a31cc952 100644 Binary files a/dis/acme/disk.dis and b/dis/acme/disk.dis differ diff --git a/dis/acme/ecmd.dis b/dis/acme/ecmd.dis index 1285f17f..5794e5b3 100644 Binary files a/dis/acme/ecmd.dis and b/dis/acme/ecmd.dis differ diff --git a/dis/acme/edit.dis b/dis/acme/edit.dis index 5fbd24da..e412bf02 100644 Binary files a/dis/acme/edit.dis and b/dis/acme/edit.dis differ diff --git a/dis/acme/elog.dis b/dis/acme/elog.dis index cc7ef681..dee3acd3 100644 Binary files a/dis/acme/elog.dis and b/dis/acme/elog.dis differ diff --git a/dis/acme/exec.dis b/dis/acme/exec.dis index a9e17a78..a7f39e1a 100644 Binary files a/dis/acme/exec.dis and b/dis/acme/exec.dis differ diff --git a/dis/acme/file.dis b/dis/acme/file.dis index 5658d5b7..62e7367b 100644 Binary files a/dis/acme/file.dis and b/dis/acme/file.dis differ diff --git a/dis/acme/frame.dis b/dis/acme/frame.dis index 5f786c4e..2582f867 100644 Binary files a/dis/acme/frame.dis and b/dis/acme/frame.dis differ diff --git a/dis/acme/fsys.dis b/dis/acme/fsys.dis index a7513375..4ccfdaae 100644 Binary files a/dis/acme/fsys.dis and b/dis/acme/fsys.dis differ diff --git a/dis/acme/graph.dis b/dis/acme/graph.dis index af56722c..87949cee 100644 Binary files a/dis/acme/graph.dis and b/dis/acme/graph.dis differ diff --git a/dis/acme/gui.dis b/dis/acme/gui.dis index 04288ef5..90535d6f 100644 Binary files a/dis/acme/gui.dis and b/dis/acme/gui.dis differ diff --git a/dis/acme/look.dis b/dis/acme/look.dis index 7a820e42..1d03b1fd 100644 Binary files a/dis/acme/look.dis and b/dis/acme/look.dis differ diff --git a/dis/acme/regx.dis b/dis/acme/regx.dis index 3d10e557..88e990c8 100644 Binary files a/dis/acme/regx.dis and b/dis/acme/regx.dis differ diff --git a/dis/acme/row.dis b/dis/acme/row.dis index b5165023..5ec6dd27 100644 Binary files a/dis/acme/row.dis and b/dis/acme/row.dis differ diff --git a/dis/acme/scrl.dis b/dis/acme/scrl.dis index 121dfdc2..8f2c2ef2 100644 Binary files a/dis/acme/scrl.dis and b/dis/acme/scrl.dis differ diff --git a/dis/acme/text.dis b/dis/acme/text.dis index 750cd219..ef06f6f2 100644 Binary files a/dis/acme/text.dis and b/dis/acme/text.dis differ diff --git a/dis/acme/time.dis b/dis/acme/time.dis index f422b832..dce289a1 100644 Binary files a/dis/acme/time.dis and b/dis/acme/time.dis differ diff --git a/dis/acme/util.dis b/dis/acme/util.dis index bb157a1a..4fedf6b5 100644 Binary files a/dis/acme/util.dis and b/dis/acme/util.dis differ diff --git a/dis/acme/wind.dis b/dis/acme/wind.dis index aa744258..aacb6c4b 100644 Binary files a/dis/acme/wind.dis and b/dis/acme/wind.dis differ diff --git a/dis/acme/xfid.dis b/dis/acme/xfid.dis index f02bd302..35c96111 100644 Binary files a/dis/acme/xfid.dis and b/dis/acme/xfid.dis differ -- cgit v1.2.3 From d5877ddecc352815bcddca0f1214d6b1d0ca4019 Mon Sep 17 00:00:00 2001 From: Yaroslav Kolomiiets Date: Fri, 4 Nov 2016 13:35:03 +0200 Subject: acme: hande Pgup, Pgdown keys --- appl/acme/text.b | 14 ++++++++++++-- dis/acme/text.dis | Bin 19443 -> 19736 bytes 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'dis') diff --git a/appl/acme/text.b b/appl/acme/text.b index 32c31ee6..0aa0d482 100644 --- a/appl/acme/text.b +++ b/appl/acme/text.b @@ -705,12 +705,22 @@ Text.typex(t : self ref Text, r : int, echomode : int) } return; Kdown or Keyboard->Down => - n = t.frame.maxlines/2; + n = t.frame.maxlines/3; + q0 = t.org+frcharofpt(t.frame, (t.frame.r.min.x, t.frame.r.min.y+n*t.frame.font.height)); + t.setorigin(q0, FALSE); + return; + Keyboard->Pgdown => + n = 2*t.frame.maxlines/3; q0 = t.org+frcharofpt(t.frame, (t.frame.r.min.x, t.frame.r.min.y+n*t.frame.font.height)); t.setorigin(q0, FALSE); return; Kup or Keyboard->Up => - n = t.frame.maxlines/2; + n = t.frame.maxlines/3; + q0 = t.backnl(t.org, n); + t.setorigin(q0, FALSE); + return; + Keyboard->Pgup => + n = 2*t.frame.maxlines/3; q0 = t.backnl(t.org, n); t.setorigin(q0, FALSE); return; diff --git a/dis/acme/text.dis b/dis/acme/text.dis index ef06f6f2..09c28b5d 100644 Binary files a/dis/acme/text.dis and b/dis/acme/text.dis differ -- cgit v1.2.3 From 39d2105807e5fdd337df2cb2907631b2ba5afad3 Mon Sep 17 00:00:00 2001 From: Yaroslav Kolomiiets Date: Fri, 4 Nov 2016 14:08:41 +0200 Subject: acme: handle ^A, ^E keys --- appl/acme/text.b | 15 +++++++++++++++ dis/acme/text.dis | Bin 19736 -> 20063 bytes 2 files changed, 15 insertions(+) (limited to 'dis') diff --git a/appl/acme/text.b b/appl/acme/text.b index 0aa0d482..7fdce3f3 100644 --- a/appl/acme/text.b +++ b/appl/acme/text.b @@ -746,6 +746,21 @@ Text.typex(t : self ref Text, r : int, echomode : int) else if(t.q1 != t.file.buf.nc) t.show(t.q1+1, t.q1+1, TRUE); return; + 1 => # ^A: beginning of line + t.commit(TRUE); + # go to where ^U would erase, if not already at BOL + nnb = 0; + if(t.q0>0 && t.readc(t.q0-1)!='\n') + nnb = t.bswidth(16r15); + t.show(t.q0-nnb, t.q0-nnb, TRUE); + return; + 5 => # ^E: end of line + t.commit(TRUE); + q0 = t.q0; + while(q0