f3704e6553Remove timeout in the main loop The main loop waits until there is some data to read in file descriptors of the X server or the pseudo tty. But it uses a timeout in select(), which causes that st awake each 20 ms, even it doesn't have something to do. This patch removes this problem removing the timeout, which is not needed. --- TODO | 1 - st.c | 27 +++------------------------ 2 files changed, 3 insertions(+), 25 deletions(-)
Roberto E. Vargas Caballero
2012-09-16 10:47:21 +02:00
85849ce72aRemove timeout in the main loop
Roberto E. Vargas Caballero
2012-09-16 10:47:21 +02:00
9c04eb529fCall XSync in redraw It is necessary call to XSync if you want a good tput flash, because in other way you can not be sure that white screen will be shown. --- st.c | 1 + 1 file changed, 1 insertion(+)
Roberto E. Vargas Caballero
2012-09-16 10:46:08 +02:00
15cc8754c2Call XSync in redraw
Roberto E. Vargas Caballero
2012-09-16 10:46:08 +02:00
6b42002e1aCall XdbeQueryExtension before of calling any Xdbe function XdbeQueryExtension() tells to the caller if the Xdbe extension is present in the X server, so it should be called for sanity. But like is said in XdbeQueryExtension(3):
Roberto E. Vargas Caballero
2012-09-16 10:45:36 +02:00
ba1e9daeefCall XdbeQueryExtension before of calling any Xdbe function
Roberto E. Vargas Caballero
2012-09-16 10:45:36 +02:00
dccba949b5Implementing italic-bold. This will require an increase of the avgWdth.
Christoph Lohmann
2012-09-14 19:46:07 +02:00
a62789788cImplementing italic-bold. This will require an increase of the avgWdth.
Christoph Lohmann
2012-09-14 19:46:07 +02:00
30e167c457Ignore NUL character as a padding character. Telnet may use this. Patch of Roberto Vargas.
Christoph Lohmann
2012-09-13 23:21:40 +02:00
b156352656Ignore NUL character as a padding character. Telnet may use this. Patch of
Christoph Lohmann
2012-09-13 23:21:40 +02:00
184c38c88bImporting the patch of Roberto Vargas to inherit signal handlers.
Christoph Lohmann
2012-09-13 23:19:57 +02:00
776a022e39Importing the patch of Roberto Vargas to inherit signal handlers.
Christoph Lohmann
2012-09-13 23:19:57 +02:00
12516e2181Reset window title on terminal reset too.
Christoph Lohmann
2012-09-13 07:16:38 +02:00
fe2ba95b3dReset window title on terminal reset too.
Christoph Lohmann
2012-09-13 07:16:38 +02:00
81283df211Adding a statemant on legacy support.
Christoph Lohmann
2012-09-13 07:04:59 +02:00
977c5d9089Adding a statemant on legacy support.
Christoph Lohmann
2012-09-13 07:04:59 +02:00
42ebd8ef7fAdding another bold off sequence.
Christoph Lohmann
2012-09-13 07:04:34 +02:00
d018c9c8efAdding another bold off sequence.
Christoph Lohmann
2012-09-13 07:04:34 +02:00
d254935875Remove buffering to fileio instead of calling fflush By default text files are line buffered, and this means that -f option will not write the line until a \n is printed. This is not very useful for debugging, so a call to fflush was added. This patch substitute this call (which will be done by each character painted) by the full remove of the buffering in the file. --- st.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
Roberto E. Vargas Caballero
2012-09-12 21:51:55 +02:00
720cb816dcRemove buffering to fileio instead of calling fflush
Roberto E. Vargas Caballero
2012-09-12 21:51:55 +02:00
adc4631574Add xmalloc and xrealloc wrappers If malloc or realloc fail they return NULL. Theorically this condition should be tested in the code, but it's a strange condition today (basically if this is hapenning thenyou have a big problem), and even Linux never returns NULL in the default configuration (only if the process don't have room in the space address, something a bit impossible in the case of st). But stis enough small for being executed in low resources computers where this can be a real problem. So the easy way is creating a wrappers function for them and call to die in case of error. --- st.c | 44 +++++++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 13 deletions(-)
Roberto E. Vargas Caballero
2012-09-12 21:25:35 +02:00
b9d5fec4f2Add xmalloc and xrealloc wrappers
Roberto E. Vargas Caballero
2012-09-12 21:25:35 +02:00
91d32161fcMake nyancat(1) work. Important release feature!
Christoph Lohmann
2012-09-12 13:20:10 +02:00
8f1144edeeMake nyancat(1) work. Important release feature!
Christoph Lohmann
2012-09-12 13:20:10 +02:00
04b6bee980Add preliminary blink stubs. Real implementation is still missing.
Christoph Lohmann
2012-09-12 13:08:26 +02:00
121d9109e8Add preliminary blink stubs. Real implementation is still missing.
Christoph Lohmann
2012-09-12 13:08:26 +02:00
1e334a1469Add another obscure way to set a window title.
Christoph Lohmann
2012-09-12 13:00:39 +02:00
c092bce366Add another obscure way to set a window title.
Christoph Lohmann
2012-09-12 13:00:39 +02:00
10cb169edeFixing the too small window in non-tiling window managers.
Christoph Lohmann
2012-09-10 13:39:41 +02:00
af29fb2a50Fixing the too small window in non-tiling window managers.
Christoph Lohmann
2012-09-10 13:39:41 +02:00
e5588098c0Making the selection work again.
Christoph Lohmann
2012-09-06 08:02:56 +02:00
122ed57702Making the selection work again.
Christoph Lohmann
2012-09-06 08:02:56 +02:00
25cdfc8483Allow simpler stdout -f handling.
Christoph Lohmann
2012-09-06 00:00:50 +02:00
a1cd28f809Allow simpler stdout -f handling.
Christoph Lohmann
2012-09-06 00:00:50 +02:00
b576d2c551Adding instantenous debug output and fixing italic with a reset.
Christoph Lohmann
2012-09-05 23:38:57 +02:00
f2da43a0b6Adding instantenous debug output and fixing italic with a reset.
Christoph Lohmann
2012-09-05 23:38:57 +02:00
f48c2b1484Adding the removal of the timeouts to the TODO.
Christoph Lohmann
2012-09-05 23:06:59 +02:00
86cf8e3073Adding the removal of the timeouts to the TODO.
Christoph Lohmann
2012-09-05 23:06:59 +02:00
fd7f78f2c7Removing masks for unhandled enter and leaving events.
Christoph Lohmann
2012-09-05 22:39:09 +02:00
4a4ae19158Removing masks for unhandled enter and leaving events.
Christoph Lohmann
2012-09-05 22:39:09 +02:00
001b0152a4If the selection is cleared, draw() and do it on button press too.
Christoph Lohmann
2012-09-05 22:17:42 +02:00
dd0b7a077fIf the selection is cleared, draw() and do it on button press too.
Christoph Lohmann
2012-09-05 22:17:42 +02:00
62c5abf2a7Unhighlight selection when selection is owner by other window st marks the active selection using reverse colors in the box selection, but once that another window becomes owner of the selection, it is very confusing that st keeps highlight the old selection. Usually terminal emulators remove the highlight when it is not valid anymore.
Roberto E. Vargas Caballero
2012-09-05 21:55:45 +02:00
f471a32d29Unhighlight selection when selection is owner by other window
Roberto E. Vargas Caballero
2012-09-05 21:55:45 +02:00
a683de5364Forcing the parameter limit to xcopy() and selpaste(). Thanks to Rob Pilling.
Christoph Lohmann
2012-09-05 21:54:52 +02:00
017af76f5cForcing the parameter limit to xcopy() and selpaste(). Thanks to Rob Pilling.
Christoph Lohmann
2012-09-05 21:54:52 +02:00
d0973d19daRemoving unneeded arguments to copy(). Thanks to Andrew Hills.
Christoph Lohmann
2012-09-05 21:52:01 +02:00
42505c5215Removing unneeded arguments to copy(). Thanks to Andrew Hills.
Christoph Lohmann
2012-09-05 21:52:01 +02:00
f5c6bcf03aImplement italic font support.
Christoph Lohmann
2012-09-05 21:48:26 +02:00
462a966ee2Implement italic font support.
Christoph Lohmann
2012-09-05 21:48:26 +02:00
0e0a7f9130Add to TODO to make function keys work.
Christoph Lohmann
2012-09-05 01:32:42 +02:00
56c551e4f4Add to TODO to make function keys work.
Christoph Lohmann
2012-09-05 01:32:42 +02:00
c238dbae5fEnable keypad set and unset commands.
Christoph Lohmann
2012-09-05 01:25:37 +02:00
a61b9ea82eEnable keypad set and unset commands.
Christoph Lohmann
2012-09-05 01:25:37 +02:00
245a6418b4Disable BCE again.
Christoph Lohmann
2012-09-05 00:58:17 +02:00
da4a77edbeDisable BCE again.
Christoph Lohmann
2012-09-05 00:58:17 +02:00
1afbb7799fRemoving the resize issue from the TODO file.
Christoph Lohmann
2012-09-05 00:09:13 +02:00
98dc91eb82Removing the resize issue from the TODO file.
Christoph Lohmann
2012-09-05 00:09:13 +02:00
76a86e1612Fixing the resizing behaviour.
Christoph Lohmann
2012-09-05 00:08:13 +02:00
67c1a23053Fixing the resizing behaviour.
Christoph Lohmann
2012-09-05 00:08:13 +02:00
a9550744b5Forgot one line. It's late.
Christoph Lohmann
2012-09-04 22:51:29 +02:00
e09709d92dForgot one line. It's late.
Christoph Lohmann
2012-09-04 22:51:29 +02:00
b9567a9b18Cleaning up the fixed window size and the resizing of clients.
Christoph Lohmann
2012-09-04 22:44:33 +02:00
b1d383a0a3Cleaning up the fixed window size and the resizing of clients.
Christoph Lohmann
2012-09-04 22:44:33 +02:00
6cd52d6c2fAnother thing for TODO – resize.
Christoph Lohmann
2012-09-04 22:06:54 +02:00
e02d72441aAnother thing for TODO – resize.
Christoph Lohmann
2012-09-04 22:06:54 +02:00
7815df826aUpdating the TODO and enabling BCE.
Christoph Lohmann
2012-09-04 22:05:24 +02:00
052a617828Updating the TODO and enabling BCE.
Christoph Lohmann
2012-09-04 22:05:24 +02:00
870be23e28CUP == HVP; CHA == HPA;
Christoph Lohmann
2012-09-04 21:56:55 +02:00
6e88c7f602CUP == HVP; CHA == HPA;
Christoph Lohmann
2012-09-04 21:56:55 +02:00
1f7896ae9cUnifying the old style.
Christoph Lohmann
2012-09-04 20:34:43 +02:00
59fe59d3d1Unifying the old style.
Christoph Lohmann
2012-09-04 20:34:43 +02:00
ec8262e106Check alternative screen before drawing box selection Some programs use the alternative screen (vi, less, ...), whose content is different of the main screen. If you select text in one of the screen, you don't wait the box selection is painted in the other screen, so it is necessary check if the selection was done in the same screen we are going to paint. Before to this commit, you could do something like:
Roberto E. Vargas Caballero
2012-09-04 20:33:01 +02:00
98b6f84bfcCheck alternative screen before drawing box selection
Roberto E. Vargas Caballero
2012-09-04 20:33:01 +02:00
66669a5585Add newline to stderr message
Roberto E. Vargas Caballero
2012-09-04 20:31:21 +02:00
59eaf3ce56Fixing the border pixel when there is a negative position.
Christoph Lohmann
2012-09-03 23:09:34 +02:00
1d6702024bFixing the border pixel when there is a negative position.
Christoph Lohmann
2012-09-03 23:09:34 +02:00
31c71cddb9Add -g geometry to st and the manpage.
Christoph Lohmann
2012-09-03 23:02:29 +02:00
579f12d47bAdd -g geometry to st and the manpage.
Christoph Lohmann
2012-09-03 23:02:29 +02:00
07c282d229Fixing a type in in2 in the st.info.
Christoph Lohmann
2012-09-03 21:54:40 +02:00
466decd535Fixing a type in in2 in the st.info.
Christoph Lohmann
2012-09-03 21:54:40 +02:00
e135e96f35Force redisplay of all lines in DECSCNM When it is called DECSCNM all lines become dirty, because it is necessary redraw all lines for getting the new colors. It is easy see the problem running 'echo ^[[?5h'.
Roberto E. Vargas Caballero
2012-09-03 21:52:34 +02:00
930b2c4a7fForce redisplay of all lines in DECSCNM
Roberto E. Vargas Caballero
2012-09-03 21:52:34 +02:00
ee4a9934abAdd write I/O to file This is a theorical feature listed in http://st.suckless.org/goals. All the input/output of the terminal will be written to a file, which can be very useful for debugging, and also allow interconnect st to other process through named pipes. --- st.1 | 6 ++++++ st.c | 14 +++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-)
Roberto E. Vargas Caballero
2012-09-03 21:52:21 +02:00
a984ffc4cbAdd write I/O to file
Roberto E. Vargas Caballero
2012-09-03 21:52:21 +02:00
eeb26ec316Patch from Roberto Vargas. »Add initialization strings in terminfo«
Christoph Lohmann
2012-09-03 21:50:22 +02:00
cfefa054e8Patch from Roberto Vargas. »Add initialization strings in terminfo«
Christoph Lohmann
2012-09-03 21:50:22 +02:00
b3d8986489Add standout mode.
Christoph Lohmann
2012-09-02 19:53:50 +02:00
b11d85c9beAdd standout mode.
Christoph Lohmann
2012-09-02 19:53:50 +02:00
6f336ce8f2Cleaning up lonely tabs.
Christoph Lohmann
2012-09-02 19:43:29 +02:00
7f17a70834Cleaning up lonely tabs.
Christoph Lohmann
2012-09-02 19:43:29 +02:00
e2f6df0d17Make it more obvious where the wrong attribute is used.
Christoph Lohmann
2012-09-02 19:42:00 +02:00
588ba51a53Make it more obvious where the wrong attribute is used.
Christoph Lohmann
2012-09-02 19:42:00 +02:00
7988713b35Enable multiple arguments in SM and RM SM and RM can receive multiple parameters, but the code only was accepting only one. This patch join the code of set and reset modes (SM and RM) in a common function and uses a loop which deals with all the arguments of the sequence. This patch improves xterm and vt100 compability. --- st.c | 180 ++++++++++++++++++++++++++++-------------------------------------- 1 file changed, 76 insertions(+), 104 deletions(-)
Roberto E. Vargas Caballero
2012-09-02 19:09:35 +02:00
c79df9f78dEnable multiple arguments in SM and RM
Roberto E. Vargas Caballero
2012-09-02 19:09:35 +02:00
1da81ff23eSilencing the compiler but keeping strparse. This will really be needed when there is a full 256 color support.
Christoph Lohmann
2012-08-30 21:19:53 +02:00
81c678e53eSilencing the compiler but keeping strparse.
Christoph Lohmann
2012-08-30 21:19:53 +02:00