7db9bbf7eeThe style inquisition was here again.
Christoph Lohmann
2012-11-13 20:13:39 +01:00
7474a2fc37The style inquisition was here again.
Christoph Lohmann
2012-11-13 20:13:39 +01:00
48b0f22c46Add 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 +01:00
1415d79028Add 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 +01:00
44597b359eAdd control and meta combinations for arrow keys
Roberto E. Vargas Caballero
2012-11-13 20:04:54 +01:00
4611d5dad6Fix 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 +01:00
6c90a490fbRemove 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 +01:00
ea782bfc5dRemove hardcoded keys form kpress
Roberto E. Vargas Caballero
2012-11-13 20:04:45 +01:00
6c84ff7f73Move 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 +01:00
93f31166bfMove Shift + Insert to shortcut
Roberto E. Vargas Caballero
2012-11-13 20:04:39 +01:00
a6647636b6Fix 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 +01:00
69ee3ba3a7Fix keypad mode and cursor mode
Roberto E. Vargas Caballero
2012-11-13 20:04:34 +01:00
9b38010a6cAdd 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 +01:00
73177ba366Add SRM sequence
Roberto E. Vargas Caballero
2012-11-13 20:04:26 +01:00
09d688616fGc is not used anymore.
Christoph Lohmann
2012-11-11 19:46:34 +01:00
ace789a79fGc is not used anymore.
Christoph Lohmann
2012-11-11 19:46:34 +01:00
5a54d3af73Removing some xft naming cruft.
Christoph Lohmann
2012-11-11 19:38:41 +01:00
c4a9ccec19Removing some xft naming cruft.
Christoph Lohmann
2012-11-11 19:38:41 +01:00
266a64c6c3Moving the alt declaration to the beginning of the function.
Christoph Lohmann
2012-11-08 17:22:48 +01:00
5d5a7c627aMoving the alt declaration to the beginning of the function.
Christoph Lohmann
2012-11-08 17:22:48 +01:00
6c9b9f03cdMove 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 +01:00
8665905216Move unsupported sequences to ignored.
Roberto E. Vargas Caballero
2012-11-08 17:22:04 +01:00
66d559675aIgnore 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 +01:00
27468403ccIgnore DECARM sequence
Roberto E. Vargas Caballero
2012-11-08 17:21:41 +01:00
39cd391485Fix 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 +01:00
d5b80e05e8Fix VPR sequence
Roberto E. Vargas Caballero
2012-11-08 17:21:24 +01:00
53d0b48f6aAdd 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 +01:00
5260a9ea22Add DECOM sequence
Roberto E. Vargas Caballero
2012-11-08 17:21:10 +01:00
b67b78efacSave 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 +01:00
ee3e0a9fd0Save cursor position in terminal reset
Roberto E. Vargas Caballero
2012-11-08 17:20:15 +01:00
4e52325e6dClarify 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 +01:00
ba9d0365acClarify some or exclusive expressions
Roberto E. Vargas Caballero
2012-11-08 17:17:26 +01:00
986c84e77eFix 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 +01:00
950ff21e17Fix bug restoring cursor position
Roberto E. Vargas Caballero
2012-11-08 17:15:26 +01:00
835ef67498Changing the license to MIT/X.
Christoph Lohmann
2012-11-05 04:02:20 +01:00
9df1e56142Changing the license to MIT/X.
Christoph Lohmann
2012-11-05 04:02:20 +01:00
7fe4472c50Fixing meta+return. Thanks Szabolcs Nagy!
Christoph Lohmann
2012-11-04 00:04:56 +01:00
0fbe1559c8Fixing meta+return. Thanks Szabolcs Nagy!
Christoph Lohmann
2012-11-04 00:04:56 +01:00
7c4c98476bRemoving the debugging for the last fix too.
Christoph Lohmann
2012-11-03 14:05:45 +01:00
86261187abRemoving the debugging for the last fix too.
Christoph Lohmann
2012-11-03 14:05:45 +01:00
2931b75fc3Fixing a resize bug, if a smaller amount than the lineheight is resized. Thanks c00kiemon5ter!
Christoph Lohmann
2012-11-03 14:05:15 +01:00
9888c5064bFixing a resize bug, if a smaller amount than the lineheight is resized.
Christoph Lohmann
2012-11-03 14:05:15 +01:00
a624f3368bFixing bold fonts in reverse mode.
Christoph Lohmann
2012-11-03 13:43:20 +01:00
f8db65439aFixing bold fonts in reverse mode.
Christoph Lohmann
2012-11-03 13:43:20 +01:00
ff3bc8cf31Now italic and bold works.
Christoph Lohmann
2012-11-03 08:35:32 +01:00
76a8e5f72bNow italic and bold works.
Christoph Lohmann
2012-11-03 08:35:32 +01:00
80150c86afFixing an out-of-bound bug in the selection code. Thanks Szabolczs Nagy!
Christoph Lohmann
2012-11-03 03:24:22 +01:00
abe85c0e99Fixing an out-of-bound bug in the selection code. Thanks Szabolczs Nagy!
Christoph Lohmann
2012-11-03 03:24:22 +01:00
aa3c6dbf0aFixing the italic-bold font check. Thanks nsz.
Christoph Lohmann
2012-11-02 23:19:56 +01:00
091ae143ceFixing the italic-bold font check. Thanks nsz.
Christoph Lohmann
2012-11-02 23:19:56 +01:00
f4f2b1c315Added tag 0.3 for changeset 9d54ce4daf34
Christoph Lohmann
2012-11-02 20:08:51 +01:00
cd90969cabAdded tag 0.3 for changeset 9d54ce4daf34
Christoph Lohmann
2012-11-02 20:08:51 +01:00
df62d3dab80.3 release.
0.3
Christoph Lohmann
2012-11-02 20:08:27 +01:00
b0ed3e28970.3 release.
Christoph Lohmann
2012-11-02 20:08:27 +01:00
d92ad64017Make 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 +01:00
c631e9bb91Make it possible to use the corefont font description too. It is not very
Christoph Lohmann
2012-11-02 20:07:11 +01:00
dcf0955466Moving to the dwm config.h variable usage.
Christoph Lohmann
2012-11-02 19:56:02 +01:00
393825f9f8Moving to the dwm config.h variable usage.
Christoph Lohmann
2012-11-02 19:56:02 +01:00
48389be574Adding a FAQ to reference utmp(1).
Christoph Lohmann
2012-10-31 20:36:32 +01:00
e5d7c5a69eAdding a FAQ to reference utmp(1).
Christoph Lohmann
2012-10-31 20:36:32 +01:00
d84e2978c2Cleaning up the TODO file.
Christoph Lohmann
2012-10-31 20:35:07 +01:00
784765ca35Cleaning up the TODO file.
Christoph Lohmann
2012-10-31 20:35:07 +01:00
cb9d92ce51Removing the now senseless comment in config.def.h. Thanks to bnwe!
Christoph Lohmann
2012-10-28 14:13:39 +01:00
1d378227c0Removing the now senseless comment in config.def.h. Thanks to bnwe!
Christoph Lohmann
2012-10-28 14:13:39 +01:00
32173a11b4Applying the patch of the little girl <yui@blekksprut.net> to make cjk input possible. Thanks!
Christoph Lohmann
2012-10-28 13:37:11 +01:00
c5dd7fb377Applying the patch of the little girl <yui@blekksprut.net> to make cjk input
Christoph Lohmann
2012-10-28 13:37:11 +01:00
7168d85f97Applying the tab expansion patch from koga.
Christoph Lohmann
2012-10-28 13:35:00 +01:00
b56a0da283Applying the tab expansion patch from koga.
Christoph Lohmann
2012-10-28 13:35:00 +01:00
53eda6d525Adding a more flexible fontstring handling, shortcuts and a zoom function.
Christoph Lohmann
2012-10-28 13:25:53 +01:00
71b09ec4f1Adding a more flexible fontstring handling, shortcuts and a zoom function.
Christoph Lohmann
2012-10-28 13:25:53 +01:00
91804d7227Applying 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 +01:00
6d4e525ed9Applying the patch of Roberto Caballero to set WINDOWID and all the pwuid()
Christoph Lohmann
2012-10-28 06:54:08 +01:00
4abecf9ce4Applying 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 +01:00
35421371caApplying the patch of Rafa Garcia Gallega <rafael.garcia.gallego@gmail.com> to
Christoph Lohmann
2012-10-28 06:32:54 +01:00
5de1468554Add 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 +01:00
ee3fbeb6c8Add error control to iofile
Roberto E. Vargas Caballero
2012-10-28 06:27:42 +01:00
ab40392d08Well, 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 +02:00
2e38ab7afdWell, I was confused. Damn state exams. Instead of discussing this shit I
Christoph Lohmann
2012-10-09 19:40:37 +02:00
fa952e1901If there is really someone without SHELL set, help him/her.
Christoph Lohmann
2012-10-09 19:33:26 +02:00
eb6713acf1If there is really someone without SHELL set, help him/her.
Christoph Lohmann
2012-10-09 19:33:26 +02:00
5967a7c0dbAdd 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 +02:00
9e813947cfAdd DEC alignment test
Roberto E. Vargas Caballero
2012-10-07 11:06:17 +02:00
d627351429Avoid 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 +02:00
b7a7f171efAvoid initialization of vt100_0 in each call to tsetchar
Roberto E. Vargas Caballero
2012-10-07 11:06:08 +02:00
976b34d1fcFix 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 +02:00
25f47cb83aFix Identification sequences
Roberto E. Vargas Caballero
2012-10-07 11:06:00 +02:00
f0ee36878cAdd 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 +02:00
ffeeb678c5Add DA and DECID sequences
Roberto E. Vargas Caballero
2012-10-06 21:19:56 +02:00
a90662fdcfFixing a typo.
Christoph Lohmann
2012-10-06 21:02:25 +02:00
bffa6e5cc6Fixing a typo.
Christoph Lohmann
2012-10-06 21:02:25 +02:00
852db9e9b0Fixing a off-by-one error in the new border clearing code.
Christoph Lohmann
2012-10-06 20:52:22 +02:00
b16b5d77d3Fixing a off-by-one error in the new border clearing code.
Christoph Lohmann
2012-10-06 20:52:22 +02:00
a9092bc48bPrint 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 +02:00
2bd0c23fa7Print control codes only in graphic mode
Roberto E. Vargas Caballero
2012-10-06 19:15:30 +02:00
506b8ea0c6Add 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 +02:00
034dc71fb8Add SI and SO control codes
Roberto E. Vargas Caballero
2012-10-06 19:13:36 +02:00