Commit Graph

  • 48b0f22c46 Add missed key definitions This patch adds the keys for the keypad (in both modes, application mode or ansi mode) and function keys. It uses the same convention than xterm and instead of using the XK_Fxx values it generates them using F1-F12 and modifiers. For example: Roberto E. Vargas Caballero 2012-11-13 20:05:02 +0100
  • 620e3bb39e Add missed key definitions Roberto E. Vargas Caballero 2012-11-13 20:05:02 +0100
  • 1415d79028 Add control and meta combinations for arrow keys Since there isn't any terminfo capability for control and meta modifiers for arrows keys it is necessary use the same that almost terminal emulators use, because there are a lot of programs which have these codes hardcoded. Roberto E. Vargas Caballero 2012-11-13 20:04:54 +0100
  • 44597b359e Add control and meta combinations for arrow keys Roberto E. Vargas Caballero 2012-11-13 20:04:54 +0100
  • 4611d5dad6 Fix arrow keys terminfo capabilities Usually the arrow keys generate the ANSI sequence which terminal will understand like a movement, so it is not necessary any dealing for them, the program can not know if the sequence is generate for a echo key or directly from the program. If you need really know if the key was pressed then you need activate the keypad mode where the keys will generate a special code for each keypad key. Roberto E. Vargas Caballero 2012-11-13 20:04:50 +0100
  • 3b16695f4e Fix arrow keys terminfo capabilities Roberto E. Vargas Caballero 2012-11-13 20:04:50 +0100
  • 6c90a490fb Remove hardcoded keys form kpress Some keys were in the Key array while others were hardcoded in kpress().This cause some problems with some keys which can generate more of one string based in the configuration of the terminal. --- config.def.h | 70 ++++++++++++++++++++++++++++++++++++++++----------------- st.c | 71 +++++++++++++++++++++++++--------------------------------- 2 files changed, 79 insertions(+), 62 deletions(-) Roberto E. Vargas Caballero 2012-11-13 20:04:45 +0100
  • ea782bfc5d Remove hardcoded keys form kpress Roberto E. Vargas Caballero 2012-11-13 20:04:45 +0100
  • 6c84ff7f73 Move Shift + Insert to shortcut Shift + Insert is used like a hot key for paste the selection, so it is more logical move it to shortcut array instead of having special code for it. --- config.def.h | 1 + st.c | 13 +++---------- 2 files changed, 4 insertions(+), 10 deletions(-) Roberto E. Vargas Caballero 2012-11-13 20:04:39 +0100
  • 93f31166bf Move Shift + Insert to shortcut Roberto E. Vargas Caballero 2012-11-13 20:04:39 +0100
  • a6647636b6 Fix keypad mode and cursor mode Keypad mode is used for detecting when keys in the auxiliary keypad are pressed, while cursor mode is used for detecting when a cursor is pressed, but they are different modes. Roberto E. Vargas Caballero 2012-11-13 20:04:34 +0100
  • 69ee3ba3a7 Fix keypad mode and cursor mode Roberto E. Vargas Caballero 2012-11-13 20:04:34 +0100
  • 9b38010a6c Add SRM sequence This sequence enable/disable the local echo. --- st.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 20 deletions(-) Roberto E. Vargas Caballero 2012-11-13 20:04:26 +0100
  • 73177ba366 Add SRM sequence Roberto E. Vargas Caballero 2012-11-13 20:04:26 +0100
  • 09d688616f Gc is not used anymore. Christoph Lohmann 2012-11-11 19:46:34 +0100
  • ace789a79f Gc is not used anymore. Christoph Lohmann 2012-11-11 19:46:34 +0100
  • 5a54d3af73 Removing some xft naming cruft. Christoph Lohmann 2012-11-11 19:38:41 +0100
  • c4a9ccec19 Removing some xft naming cruft. Christoph Lohmann 2012-11-11 19:38:41 +0100
  • 266a64c6c3 Moving the alt declaration to the beginning of the function. Christoph Lohmann 2012-11-08 17:22:48 +0100
  • 5d5a7c627a Moving the alt declaration to the beginning of the function. Christoph Lohmann 2012-11-08 17:22:48 +0100
  • 6c9b9f03cd Move unsupported sequences to ignored. These sequences will be never implemented and in this moment they are generating a lot of noise. --- st.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) Roberto E. Vargas Caballero 2012-11-08 17:22:04 +0100
  • 8665905216 Move unsupported sequences to ignored. Roberto E. Vargas Caballero 2012-11-08 17:22:04 +0100
  • 66d559675a Ignore DECARM sequence DECARM modify the auto repeat settings in the keyboard, and since we can not modify this setting in the Xserver the best solution is only ignore it. --- st.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Roberto E. Vargas Caballero 2012-11-08 17:21:41 +0100
  • 27468403cc Ignore DECARM sequence Roberto E. Vargas Caballero 2012-11-08 17:21:41 +0100
  • 39cd391485 Fix VPR sequence VPR stands for Move cursor down a number of rows, and the code was moving the cursor up instead of moving it down. --- st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Roberto E. Vargas Caballero 2012-11-08 17:21:24 +0100
  • d5b80e05e8 Fix VPR sequence Roberto E. Vargas Caballero 2012-11-08 17:21:24 +0100
  • 53d0b48f6a Add DECOM sequence DECOM sequence allows to the user defines a new home position. The home position is used as base for all the movement commands except HVP and VPA. It is important notice than DECSLM moves cursor to absolute position 0,0. --- st.c | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) Roberto E. Vargas Caballero 2012-11-08 17:21:10 +0100
  • 5260a9ea22 Add DECOM sequence Roberto E. Vargas Caballero 2012-11-08 17:21:10 +0100
  • b67b78efac Save cursor position in terminal reset After terminal reset saved terminal position is reset to 0, allowing know where cursor will go in next restore cursor operation. --- st.c | 2 ++ 1 file changed, 2 insertions(+) Roberto E. Vargas Caballero 2012-11-08 17:20:15 +0100
  • ee3e0a9fd0 Save cursor position in terminal reset Roberto E. Vargas Caballero 2012-11-08 17:20:15 +0100
  • 4e52325e6d Clarify some or exclusive expressions Since relational expresions are always evaluated to 0 or 1, we can use bitwise xor operator instead of using more complex boolean expressions. --- st.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) Roberto E. Vargas Caballero 2012-11-08 17:17:26 +0100
  • ba9d0365ac Clarify some or exclusive expressions Roberto E. Vargas Caballero 2012-11-08 17:17:26 +0100
  • 986c84e77e Fix bug restoring cursor position Sequences like DECSC, DECRC, ESC [?1047l or ESC [?1047h save and restore cursor attributes, than taken from vt100 manual are: Roberto E. Vargas Caballero 2012-11-08 17:15:26 +0100
  • 950ff21e17 Fix bug restoring cursor position Roberto E. Vargas Caballero 2012-11-08 17:15:26 +0100
  • 9369c13403 Adding scrollwheel support. Thanks Brandon Invergo! Christoph Lohmann 2012-11-06 23:44:37 +0100
  • 5d39afc902 Adding scrollwheel support. Thanks Brandon Invergo! Christoph Lohmann 2012-11-06 23:44:37 +0100
  • 835ef67498 Changing the license to MIT/X. Christoph Lohmann 2012-11-05 04:02:20 +0100
  • 9df1e56142 Changing the license to MIT/X. Christoph Lohmann 2012-11-05 04:02:20 +0100
  • 7fe4472c50 Fixing meta+return. Thanks Szabolcs Nagy! Christoph Lohmann 2012-11-04 00:04:56 +0100
  • 0fbe1559c8 Fixing meta+return. Thanks Szabolcs Nagy! Christoph Lohmann 2012-11-04 00:04:56 +0100
  • 7c4c98476b Removing the debugging for the last fix too. Christoph Lohmann 2012-11-03 14:05:45 +0100
  • 86261187ab Removing the debugging for the last fix too. Christoph Lohmann 2012-11-03 14:05:45 +0100
  • 2931b75fc3 Fixing a resize bug, if a smaller amount than the lineheight is resized. Thanks c00kiemon5ter! Christoph Lohmann 2012-11-03 14:05:15 +0100
  • 9888c5064b Fixing a resize bug, if a smaller amount than the lineheight is resized. Christoph Lohmann 2012-11-03 14:05:15 +0100
  • a624f3368b Fixing bold fonts in reverse mode. Christoph Lohmann 2012-11-03 13:43:20 +0100
  • f8db65439a Fixing bold fonts in reverse mode. Christoph Lohmann 2012-11-03 13:43:20 +0100
  • ff3bc8cf31 Now italic and bold works. Christoph Lohmann 2012-11-03 08:35:32 +0100
  • 76a8e5f72b Now italic and bold works. Christoph Lohmann 2012-11-03 08:35:32 +0100
  • 80150c86af Fixing an out-of-bound bug in the selection code. Thanks Szabolczs Nagy! Christoph Lohmann 2012-11-03 03:24:22 +0100
  • abe85c0e99 Fixing an out-of-bound bug in the selection code. Thanks Szabolczs Nagy! Christoph Lohmann 2012-11-03 03:24:22 +0100
  • aa3c6dbf0a Fixing the italic-bold font check. Thanks nsz. Christoph Lohmann 2012-11-02 23:19:56 +0100
  • 091ae143ce Fixing the italic-bold font check. Thanks nsz. Christoph Lohmann 2012-11-02 23:19:56 +0100
  • f4f2b1c315 Added tag 0.3 for changeset 9d54ce4daf34 Christoph Lohmann 2012-11-02 20:08:51 +0100
  • cd90969cab Added tag 0.3 for changeset 9d54ce4daf34 Christoph Lohmann 2012-11-02 20:08:51 +0100
  • df62d3dab8 0.3 release. 0.3 Christoph Lohmann 2012-11-02 20:08:27 +0100
  • b0ed3e2897 0.3 release. Christoph Lohmann 2012-11-02 20:08:27 +0100
  • d92ad64017 Make it possible to use the corefont font description too. It is not very useful, but easy to implement. Christoph Lohmann 2012-11-02 20:07:11 +0100
  • c631e9bb91 Make it possible to use the corefont font description too. It is not very Christoph Lohmann 2012-11-02 20:07:11 +0100
  • dcf0955466 Moving to the dwm config.h variable usage. Christoph Lohmann 2012-11-02 19:56:02 +0100
  • 393825f9f8 Moving to the dwm config.h variable usage. Christoph Lohmann 2012-11-02 19:56:02 +0100
  • 48389be574 Adding a FAQ to reference utmp(1). Christoph Lohmann 2012-10-31 20:36:32 +0100
  • e5d7c5a69e Adding a FAQ to reference utmp(1). Christoph Lohmann 2012-10-31 20:36:32 +0100
  • d84e2978c2 Cleaning up the TODO file. Christoph Lohmann 2012-10-31 20:35:07 +0100
  • 784765ca35 Cleaning up the TODO file. Christoph Lohmann 2012-10-31 20:35:07 +0100
  • cb9d92ce51 Removing the now senseless comment in config.def.h. Thanks to bnwe! Christoph Lohmann 2012-10-28 14:13:39 +0100
  • 1d378227c0 Removing the now senseless comment in config.def.h. Thanks to bnwe! Christoph Lohmann 2012-10-28 14:13:39 +0100
  • 32173a11b4 Applying the patch of the little girl <yui@blekksprut.net> to make cjk input possible. Thanks! Christoph Lohmann 2012-10-28 13:37:11 +0100
  • c5dd7fb377 Applying the patch of the little girl <yui@blekksprut.net> to make cjk input Christoph Lohmann 2012-10-28 13:37:11 +0100
  • 7168d85f97 Applying the tab expansion patch from koga. Christoph Lohmann 2012-10-28 13:35:00 +0100
  • b56a0da283 Applying the tab expansion patch from koga. Christoph Lohmann 2012-10-28 13:35:00 +0100
  • 53eda6d525 Adding a more flexible fontstring handling, shortcuts and a zoom function. Christoph Lohmann 2012-10-28 13:25:53 +0100
  • 71b09ec4f1 Adding a more flexible fontstring handling, shortcuts and a zoom function. Christoph Lohmann 2012-10-28 13:25:53 +0100
  • 91804d7227 Applying the patch of Roberto Caballero to set WINDOWID and all the pwuid() variables. Thanks! xinit() and ttynew() had to be switched in their call-appearance. Otherwise xw.win is not set. Christoph Lohmann 2012-10-28 06:54:08 +0100
  • 6d4e525ed9 Applying the patch of Roberto Caballero to set WINDOWID and all the pwuid() Christoph Lohmann 2012-10-28 06:54:08 +0100
  • 4abecf9ce4 Applying the patch of Rafa Garcia Gallega <rafael.garcia.gallego@gmail.com> to not emulate the vt100 behaviour of selecting all whitespaces. Thanks! Christoph Lohmann 2012-10-28 06:32:54 +0100
  • 35421371ca Applying the patch of Rafa Garcia Gallega <rafael.garcia.gallego@gmail.com> to Christoph Lohmann 2012-10-28 06:32:54 +0100
  • 5de1468554 Add error control to iofile write can write less bytes than we request, so it is necessary check the return value, in case of error print a message and don't continnue writing in the file. --- st.c | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) Roberto E. Vargas Caballero 2012-10-28 06:27:42 +0100
  • ee3fbeb6c8 Add error control to iofile Roberto E. Vargas Caballero 2012-10-28 06:27:42 +0100
  • ab40392d08 Well, I was confused. Damn state exams. Instead of discussing this shit I should really learn opthalmology instead. :O Christoph Lohmann 2012-10-09 19:40:37 +0200
  • 2e38ab7afd Well, I was confused. Damn state exams. Instead of discussing this shit I Christoph Lohmann 2012-10-09 19:40:37 +0200
  • fa952e1901 If there is really someone without SHELL set, help him/her. Christoph Lohmann 2012-10-09 19:33:26 +0200
  • eb6713acf1 If there is really someone without SHELL set, help him/her. Christoph Lohmann 2012-10-09 19:33:26 +0200
  • 5967a7c0db Add DEC alignment test This sequence was used by DEC personal in to for verifying the screen adjust of terminals. It is the unique test sequence implemented by all the emulators, and I think it is because they want be conforms with vttest which uses this sequence in some tests. --- st.c | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) Roberto E. Vargas Caballero 2012-10-07 11:06:17 +0200
  • 9e813947cf Add DEC alignment test Roberto E. Vargas Caballero 2012-10-07 11:06:17 +0200
  • d627351429 Avoid initialization of vt100_0 in each call to tsetchar If vt100_0 is a automatic variable then it is initializated in each call to tsetchar, but if the variable is static it is initializated only in compile time. --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Roberto E. Vargas Caballero 2012-10-07 11:06:08 +0200
  • b7a7f171ef Avoid initialization of vt100_0 in each call to tsetchar Roberto E. Vargas Caballero 2012-10-07 11:06:08 +0200
  • 976b34d1fc Fix Identification sequences Do not send NUL character in the identification (use (sizeof(VT102ID) - 1), and finish the sequence once you execute it. --- st.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Roberto E. Vargas Caballero 2012-10-07 11:06:00 +0200
  • 25f47cb83a Fix Identification sequences Roberto E. Vargas Caballero 2012-10-07 11:06:00 +0200
  • f0ee36878c Add DA and DECID sequences These sequences are used by the host in order to can detect which kind of terminal is connected. St will answer like a vt102 terminal with this patch. --- st.c | 9 +++++++++ 1 file changed, 9 insertions(+) Roberto E. Vargas Caballero 2012-10-06 21:19:56 +0200
  • ffeeb678c5 Add DA and DECID sequences Roberto E. Vargas Caballero 2012-10-06 21:19:56 +0200
  • a90662fdcf Fixing a typo. Christoph Lohmann 2012-10-06 21:02:25 +0200
  • bffa6e5cc6 Fixing a typo. Christoph Lohmann 2012-10-06 21:02:25 +0200
  • 852db9e9b0 Fixing a off-by-one error in the new border clearing code. Christoph Lohmann 2012-10-06 20:52:22 +0200
  • b16b5d77d3 Fixing a off-by-one error in the new border clearing code. Christoph Lohmann 2012-10-06 20:52:22 +0200
  • a9092bc48b Print control codes only in graphic mode Non handled codes must be ignored, except in graphic mode. Also STR sequences have higher priority than control codes, so they must be handled before of them. --- st.c | 160 ++++++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 87 insertions(+), 73 deletions(-) Roberto E. Vargas Caballero 2012-10-06 19:15:30 +0200
  • 2bd0c23fa7 Print control codes only in graphic mode Roberto E. Vargas Caballero 2012-10-06 19:15:30 +0200
  • 506b8ea0c6 Add SI and SO control codes SI and SO allows change the G0 and G1 selection. This implementation is not full vt100 compatible, but it is complatible with linux virtual terminal implementation. For full vt100 compatibility we need remake a lot of stuff relate to the different charmaps. --- st.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) Roberto E. Vargas Caballero 2012-10-06 19:13:36 +0200
  • 034dc71fb8 Add SI and SO control codes Roberto E. Vargas Caballero 2012-10-06 19:13:36 +0200
  • 3fce3392ac Add SUB and CAN control codes These control codes reset any escape sequence already initialised. --- st.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) Roberto E. Vargas Caballero 2012-10-06 19:13:08 +0200
  • fbfa1f83eb Add SUB and CAN control codes Roberto E. Vargas Caballero 2012-10-06 19:13:08 +0200