Copy non set positions as spaces st selection don't insert in the selection position whose value is not set. This is correct for the positions in the end of the line, but cause some problems in the beginning. For example echo -e 'a\tb' will print in the screen: a b but after selecting and copying in some place you get: ab because positions from 1 to 7 don't have any value. This patch deals all positions without value as blank (even at the end of the line). --- st.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Add newline in error messages --- st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Add xcalloc wrapper malloc and realloc are called through xmalloc and xrealloc, so calloc should be called through xcalloc. --- st.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Applying a shortening proposal for the run loop of k0ga.
Christoph Lohmann 20h@r-36.net
Remove call to draw in resize In previous commits draw was removed from all the X events, but I forgot do it in resize. --- st.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Adding some more fields to the manpage, like authors, license etc.
Christoph Lohmann 20h@r-36.net
Remove some solved issues and add some new.
Christoph Lohmann 20h@r-36.net
Preliminary solution to the stuttering problem.
Christoph Lohmann 20h@r-36.net
Fix selection bug After the commit named "Remove timeout in the main loop", selection is not working in the proper way. After selecting something, press mouse button in a line outside of selection causes an incorrect highlight. This patch fix the problem forcing a draw after the press event, but this is only a fast hack. Real solution means rewriting selection code. --- st.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Render only once in each main loop iteration draw() runs over all lines of the screen and renders only the dirty lines, this avoids render lines which are not modified since last draw() call. In this moment the main loop is something like: - Wait something to read from file descriptors - Read from pseudo tty - Call draw() for rending - Read X events This cause the problem that all the X events that have to update the screen have to call draw() (because draw() is called before of X events handling), so you can have multiples renderings in only one iteration, that will waste a lot of resources. This patch change the main loop to: - Wait something to read from file descriptors - Read from pseudo tty - Read X events - Call draw() for rending So X events don't have to worry about rendering, because draw() is called after them. The only place where draw is called outside of the main loop is in redraw(), but it is necessary for getting a good tput flash. --- st.c | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Remove 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 k0ga@shike2.com
Call 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 k0ga@shike2.com
Call 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): No other Xdbe functions may be called before this function. If a client violates this rule, the effects of all subsequent Xdbe calls that it makes are undefined. it is mandatory call this function. --- st.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Implementing italic-bold. This will require an increase of the avgWdth.
Christoph Lohmann 20h@r-36.net
Ignore NUL character as a padding character. Telnet may use this. Patch of Roberto Vargas.
Christoph Lohmann 20h@r-36.net
Importing the patch of Roberto Vargas to inherit signal handlers.
Christoph Lohmann 20h@r-36.net
Reset window title on terminal reset too.
Christoph Lohmann 20h@r-36.net
Adding a statemant on legacy support.
Christoph Lohmann 20h@r-36.net
Adding another bold off sequence.
Christoph Lohmann 20h@r-36.net
Remove 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 k0ga@shike2.com
Add 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 k0ga@shike2.com
Make nyancat(1) work. Important release feature!
Christoph Lohmann 20h@r-36.net
Add preliminary blink stubs. Real implementation is still missing.
Christoph Lohmann 20h@r-36.net
Add another obscure way to set a window title.
Christoph Lohmann 20h@r-36.net
Fixing the too small window in non-tiling window managers.
Christoph Lohmann 20h@r-36.net
Making the selection work again.
Christoph Lohmann 20h@r-36.net
Allow simpler stdout -f handling.
Christoph Lohmann 20h@r-36.net
Adding instantenous debug output and fixing italic with a reset.
Christoph Lohmann 20h@r-36.net
Adding the removal of the timeouts to the TODO.
Christoph Lohmann 20h@r-36.net
Removing masks for unhandled enter and leaving events.
Christoph Lohmann 20h@r-36.net
If the selection is cleared, draw() and do it on button press too.
Christoph Lohmann 20h@r-36.net
Unhighlight 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. X sends a SelectionClear event in this situation, so we only have to add a callback which unhighlight the selectin box. --- st.c | 9 +++++++++ 1 file changed, 9 insertions(+)
Roberto E. Vargas Caballero k0ga@shike2.com
Forcing the parameter limit to xcopy() and selpaste(). Thanks to Rob Pilling.
Christoph Lohmann 20h@r-36.net
Removing unneeded arguments to copy(). Thanks to Andrew Hills.
Christoph Lohmann 20h@r-36.net
Implement italic font support.
Christoph Lohmann 20h@r-36.net
Add to TODO to make function keys work.
Christoph Lohmann 20h@r-36.net
Enable keypad set and unset commands.
Christoph Lohmann 20h@r-36.net
Disable BCE again.
Christoph Lohmann 20h@r-36.net
Removing the resize issue from the TODO file.
Christoph Lohmann 20h@r-36.net
Fixing the resizing behaviour.
Christoph Lohmann 20h@r-36.net
Forgot one line. It's late.
Christoph Lohmann 20h@r-36.net
Cleaning up the fixed window size and the resizing of clients.
Christoph Lohmann 20h@r-36.net
Another thing for TODO – resize.
Christoph Lohmann 20h@r-36.net
Updating the TODO and enabling BCE.
Christoph Lohmann 20h@r-36.net
CUP == HVP; CHA == HPA;
Christoph Lohmann 20h@r-36.net
Unifying the old style.
Christoph Lohmann 20h@r-36.net
Check 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: $ LESS="" ls | less (select some code) q and selection box remains drawing in the main screen, but the content of selection keeps text of the alternate screen. --- st.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Add newline to stderr message --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Fixing the border pixel when there is a negative position.
Christoph Lohmann 20h@r-36.net
Add -g geometry to st and the manpage.
Christoph Lohmann 20h@r-36.net
Fixing a type in in2 in the st.info.
Christoph Lohmann 20h@r-36.net
Force 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'. In order to get a correct flash when running tput flash is necessary wait after DECSCNM, until the changes are displayed, because in other case the switch between reverse on/reverse off will be too much fast and nothing will happen. --- st.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Add 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 k0ga@shike2.com
Patch from Roberto Vargas. »Add initialization strings in terminfo« Taken from the description: When tput init is executed the list of task performed are (taken from terminfo(5)): run the program iprog output is1 is2 set the margins using mgc, smgl and smgr set tabs using tbc and hts print the file if and finally output is3. When reset is executed, a more stronger initialization process is performed, so the terminal can return from an unknown state. rs1, rs2 and rs3 are used in this case instead of using is1, is2 and is3. This patch makes is2 = rs2, resets insert mode and set normal keypad mode. For rs1 it performs a full initilization using ^[c.
Christoph Lohmann 20h@r-36.net
Add standout mode.
Christoph Lohmann 20h@r-36.net
Cleaning up lonely tabs.
Christoph Lohmann 20h@r-36.net
Make it more obvious where the wrong attribute is used.
Christoph Lohmann 20h@r-36.net
Enable 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 k0ga@shike2.com
Add vpa terminfo capability --- st.info | 2 ++ 1 file changed, 2 insertions(+)
Roberto E. Vargas Caballero k0ga@shike2.com
Silencing the compiler but keeping strparse. This will really be needed when there is a full 256 color support.
Christoph Lohmann 20h@r-36.net
Applying the CBT patch of Roberto Vargas. Thanks.
Christoph Lohmann 20h@r-36.net
Never trust terminfo fata morganas. And adding other xterm compatibility.
Christoph Lohmann 20h@r-36.net
Add OSC, DSC, PM, APC and settitle.
Christoph Lohmann 20h@r-36.net
Adding setb and setf and a comment about terminfo installation.
Christoph Lohmann 20h@r-36.net
Add CHT sequence This sequence performs "Cursor Forward Tabulation <n> tab stops", which although is not present in vt100 or vt102, xterm accepts it. --- st.c | 5 +++++ 1 file changed, 5 insertions(+)
Roberto E. Vargas Caballero k0ga@shike2.com
Applying the patches of k0ga and changing the LICENSE file in the appropriate way.
Christoph Lohmann 20h@r-36.net
Add TBC sequence This sequence clears tab stops in the terminal. If the argument is not present or is zero, then removes the tab stop of the current horizontal position. If the argument is 3 then removes all the tab stops of the terminal. It was necessary modify the terminfo entry tbc, because it has \E[2g instead of the correct \E[3g. Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com> --- st.c | 12 ++++++++++++ st.info | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Add HTS sequence This sequence adds a new tab stop in the current horizontal position. This means that tputtab must be look for the next tab stop in the tabs array instead of using a hard coded value offset. Also, CHT sequence XXX message is removed because it is not a vt10x sequence (as far as I know it is a vt50x sequence), and it is not implemented by linux virtual terminal neither by xterm. Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com> --- st.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
Roberto E. Vargas Caballero k0ga@shike2.com
Add tabs field into Term struct Tabs stop are simulated in st using a fixed size of 8, always, without be worried about sequences changing the tab stops. A user can put a tab stop in each horizontal position of the screen, so we need at least one flag for each column of the screen. In the same way as dirty flags is used for the rows, it is used a bool dinamic array. Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com> --- st.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-)
Roberto E. Vargas Caballero k0ga@shike2.com
apply post-XDBE patch BORDER fix
Brandon Invergo brandon@invergo.net
Implement Xdbe-based double-buffering
Brandon Invergo brandon@invergo.net
update TODO.
Aurélien Aptel aurelien.aptel@gmail.com
cleanup. refactored dirt-related function.
Aurélien Aptel aurelien.aptel@gmail.com
use SHELL as default shell.
Aurélien Aptel aurelien.aptel@gmail.com
revert to "tip" in VERSION.
Aurélien Aptel aurelien.aptel@gmail.com
Added tag 0.2.1 for changeset 108926a0fe61
Aurélien Aptel aurelien.aptel@gmail.com
bump version.
Aurélien Aptel aurelien.aptel@gmail.com
replace fwrite by printf.
Aurélien Aptel aurelien.aptel@gmail.com
rewrite csidump().
Aurélien Aptel aurelien.aptel@gmail.com
clean and name enum definitions.
Aurélien Aptel aurelien.aptel@gmail.com
fix default color overwriten bug.
Aurélien Aptel aurelien.aptel@gmail.com
show dark cursor when unfocused.
Aurélien Aptel aurelien.aptel@gmail.com
document possible configuration.
Aurélien Aptel aurelien.aptel@gmail.com
handle dim/bright colors.
Aurélien Aptel aurelien.aptel@gmail.com
merge
Aurélien Aptel aurelien.aptel@gmail.com
reduce size of each glyph for faster copy.
Aurélien Aptel aurelien.aptel@gmail.com
Added tag 0.2 for changeset 3c2f9f2ab5e4
Aurélien Aptel aurelien.aptel@gmail.com
cosmetic, whitespace, etc.
Aurélien Aptel aurelien.aptel@gmail.com
fix PRINT/DRAW _TIMEOUT and fix redrawing bug.
Aurélien Aptel aurelien.aptel@gmail.com
copy dirty lines to screen, add select() timeout & min time between draw() calls. * add a timeout value (SELECT_TIMEOUT) of 20ms in the select() call * wait at least 20ms (DRAW_TIMEOUT) between draw() calls * only copy dirty lines from the buffer to the screen what draw() does: * clears dirty lines in the buffer * draws the longest same-attributes string of each dirty line to the buffer with multiple xdraws() call * copies the current dirty line from buffer to the screen with a single xcopy() call this changeset makes st run ~10x faster.
Aurélien Aptel aurelien.aptel@gmail.com
fix segfault in selection. (thx Martti Kühne)
Aurélien Aptel aurelien.aptel@gmail.com
merge.
Aurélien Aptel aurelien.aptel@gmail.com
fix selection. (thx Tarmo Heiskanen)
Aurélien Aptel aurelien.aptel@gmail.com
add dirty flag for lines
Aurélien Aptel aurelien.aptel@gmail.com
no palette limit (thx Nick)
Aurélien Aptel aurelien.aptel@gmail.com
simplify version format.
Aurélien Aptel aurelien.aptel@gmail.com
selection is removed or scrolled properly. (thx Rafa Garcia Gallego)
Aurélien Aptel aurelien.aptel@gmail.com
working on old repo, merging recent changesets.
Aurélien Aptel aurelien.aptel@gmail.com
move xembedatom in XWindow struct, add link to xembed specs.
Aurélien Aptel aurelien.aptel@gmail.com
tweak focus to support XEMBED client message and remove focus on EnterNotify. (thx Adrian)
Aurélien Aptel aurelien.aptel@gmail.com
remove dup of default window size.
Aurélien Aptel aurelien.aptel@gmail.com
fix focus state when embed in another window.
Aurélien Aptel aurelien.aptel@gmail.com
fix segfault with mouse selection. (thx anonymous)
Aurélien Aptel aurelien.aptel@gmail.com
add -w option to embed st. (thx nodus cursorius)
Aurélien Aptel aurelien.aptel@gmail.com
applied parts of "anonymous" cleanup patch.
Aurélien Aptel aurelien.aptel@gmail.com
add altscreen escseq alias & caps to terminfo entry. (thx Bert Münnich)
Aurélien Aptel aurelien.aptel@gmail.com
disable mouse highlight when mouse report enabled. (thx Bert Münnich)
Aurélien Aptel aurelien.aptel@gmail.com
reverse video mode. (thx Bert Münnich)
Aurélien Aptel aurelien.aptel@gmail.com
add status bar (window title) to terminfo. (thx Rafa Gallego)
Aurélien Aptel aurelien.aptel@gmail.com
set title before mapping window (thx Kamil Cholewiński).
Aurélien Aptel aurelien.aptel@gmail.com
applied parts of Connor Lane Smith's cleanup patch.
Aurélien Aptel aurelien.aptel@gmail.com
macro cleanup.
Aurélien Aptel aurelien.aptel@gmail.com
add mouse report escape to terminfo entry.
Aurélien Aptel aurelien.aptel@gmail.com
support for x11 xterm mouse reporting
Aurélien Aptel aurelien.aptel@gmail.com
whitespace.
Aurélien Aptel aurelien.aptel@gmail.com
cleanup.
Aurélien Aptel aurelien.aptel@gmail.com
update TODO
Aurélien Aptel aurelien.aptel@gmail.com
selection clicks, shift+arrow keys, fast(er) redraw, key mask in config.h (thx Magnus Leuthner)
Aurélien Aptel aurelien.aptel@gmail.com
update README.
Aurélien Aptel aurelien.aptel@gmail.com
quick bug-fixing 0.1.1 release.
Aurélien Aptel aurelien.aptel@gmail.com
update VERSION.
Aurélien Aptel aurelien.aptel@gmail.com
take BORDER into account for selection. (thx Petr Sabata)
Aurélien Aptel aurelien.aptel@gmail.com
fix utf8 clipboard. (thx Petr Sabata)
Aurélien Aptel aurelien.aptel@gmail.com
Added tag 0.1 for changeset cbc18c988236
Aurélien Aptel aurelien.aptel@gmail.com
add support for utf8 clipboard. fix usage message.
Aurélien Aptel aurelien.aptel@gmail.com
do not add newline to selection text if next line not selected (Nick)
pancake@nopcode.org unknown
remove debugging printf
pancake@nopcode.org unknown
apply Nick's patch to fix some error printf to use stderr
pancake@nopcode.org unknown
fix insert key, terminfo and changed TERM back to st. (thx Ondrej Martinek)
Aurélien Aptel aurelien.aptel@gmail.com
change X cursor to "I".
Aurélien Aptel aurelien.aptel@gmail.com
update terminfo entry.
Aurélien Aptel aurelien.aptel@gmail.com
add new line glitch to terminfo entry.
Aurélien Aptel aurelien.aptel@gmail.com
change -e behaviour and update man page.
Aurélien Aptel aurelien.aptel@gmail.com
-e flag handles arguments.
Aurélien Aptel aurelien.aptel@gmail.com
use memmove() instead of memcpy() in ttyread().
Aurélien Aptel aurelien.aptel@gmail.com
fix and clean ttyread(). buf wasn't static.
Aurélien Aptel aurelien.aptel@gmail.com
merge.
Aurélien Aptel aurelien.aptel@gmail.com
s/xw.dis/xw.dpy/
Aurélien Aptel aurelien.aptel@gmail.com
cleanup & bugfix in xdraws().
Aurélien Aptel aurelien.aptel@gmail.com
clean comment regarding redrawing in bmotion().
Aurélien Aptel aurelien.aptel@gmail.com
Add -c option to override the default window class
Gregor Best gbe@ring0.de
some code cleaning.
Aurélien Aptel aurelien.aptel@gmail.com
utf8 support! print text in delicious unicode greatness! all hail to the glorious Damian Okrasa for the patch! TERM set back to xterm. changed default fonts. Note: drawing is now (even) slower.
Aurélien Aptel aurelien.aptel@gmail.com
selection code cleanup.
Aurélien Aptel aurelien.aptel@gmail.com
fixed ED.
Aurélien Aptel aurelien.aptel@gmail.com
redraw if we scroll on resize
Devin J. Pohly djpohly@djpohly.com
get rid of artifacts in border on resize down
Devin J. Pohly djpohly@djpohly.com
copy old pixmap to new on resize
Devin J. Pohly djpohly@djpohly.com
move code into new xresize func, add early exit to resize
Devin J. Pohly djpohly@djpohly.com
\v and \f are have the same behaviour of \n.
Aurélien Aptel aurelien.aptel@gmail.com
added LNM mode; re-organized kpress() to handle it.
Aurélien Aptel aurelien.aptel@gmail.com
redraw optimization.
Aurélien Aptel aurelien.aptel@gmail.com
fixed newline bug.
Aurélien Aptel aurelien.aptel@gmail.com
replaced memset by loops in tresize(); turns out it's faster.
Aurélien Aptel aurelien.aptel@gmail.com
remove useless draw().
Aurélien Aptel aurelien.aptel@gmail.com
applied xclipboard patch. thx David Isaac Wolinsky.
Aurélien Aptel aurelien.aptel@gmail.com
clean button selection code.
Aurélien Aptel aurelien.aptel@gmail.com
compose key patch. thx federico luna.
Aurélien Aptel aurelien.aptel@gmail.com
s/hasfocus/focus/ for consistency.
Aurélien Aptel aurelien.aptel@gmail.com
don't draw if the window is not visible.
Aurélien Aptel aurelien.aptel@gmail.com
use xclear() in draw().
Aurélien Aptel aurelien.aptel@gmail.com
use XCreateWindow(), set gravity bit.
Aurélien Aptel aurelien.aptel@gmail.com
cleaning st.info. added comment in st.c for DECSCNM.
Aurélien Aptel aurelien.aptel@gmail.com
cleaning st.info. fixed cvvis.
Aurélien Aptel aurelien.aptel@gmail.com
set terminal colors to xterm default ones.
Aurélien Aptel aurelien.aptel@gmail.com
removed gfx chars not present in xterm acsc.
Aurélien Aptel aurelien.aptel@gmail.com
fixed start/end sequence of gfx.
Aurélien Aptel aurelien.aptel@gmail.com
undefined gfx doesn't draw \0.
Aurélien Aptel aurelien.aptel@gmail.com
fixed makefile.
Aurélien Aptel aurelien.aptel@gmail.com
added manpage.
Aurélien Aptel aurelien.aptel@gmail.com
resize from the top.
Aurélien Aptel aurelien.aptel@gmail.com
added -e and -t option.
Aurélien Aptel aurelien.aptel@gmail.com
factored code and fixed behaviour of tnewline().
Aurélien Aptel aurelien.aptel@gmail.com
updated TODO.
Aurélien Aptel aurelien.aptel@gmail.com
started to go through st.info and fix things.
Aurélien Aptel aurelien.aptel@gmail.com
capabilities sorted by capname in st.info. copy acsc from xterm.
Aurélien Aptel aurelien.aptel@gmail.com
removed debug code.
Aurélien Aptel aurelien.aptel@gmail.com
fixed IL and DL.
Aurélien Aptel aurelien.aptel@gmail.com
factor and cleanup code.
Aurélien Aptel aurelien.aptel@gmail.com
added correct line drawing characters for default font.
Aurélien Aptel aurelien.aptel@gmail.com
use struct instead of array.
Aurélien Aptel aurelien.aptel@gmail.com
cleanup.
Aurélien Aptel aurelien.aptel@gmail.com
fix segfault when selecting big buffers shift+insert paste clipboard honor CFLAGS and LDFLAGS in config.mk
pancake@nopcode.org unknown
fix build.
Aurélien Aptel aurelien.aptel@gmail.com
add selinit() and renamed clipboard_* to sel*.
Aurélien Aptel aurelien.aptel@gmail.com
move event configuration in xinit().
Aurélien Aptel aurelien.aptel@gmail.com
use one global struct instead of many vars for selection. Cleanup.
Aurélien Aptel aurelien.aptel@gmail.com
use GLYPH_SET to test if a char is set; cleanup.
Aurélien Aptel aurelien.aptel@gmail.com
fix crash for small windows use unconditional infinite loops
pancake@nopcode.org unknown
toggle ATTR_REVERSE on selected text, factored some code and fixed Makefile.
Aurélien Aptel aurelien.aptel@gmail.com
fix build use config.def.h mechanism add SHELL in config.h
pancake pancake@nopcode.org
initial implementation of selection and clipboard
pancake pancake@nopcode.org
fix segfault
pancake@nopcode.org unknown
added support for alternate screen.
Aurélien Aptel aurelien.aptel@gmail.com
cursor is hid when unfocused.
Aurélien Aptel aurelien.aptel@gmail.com
use predefined OS macro instead of uname.
Aurélien Aptel aurelien.aptel@gmail.com
st should compile on NetBSD.
Aurélien Aptel aurelien.aptel@gmail.com
removed pty.h. minimal system guessing added in config.mk.
Aurélien Aptel aurelien.aptel@gmail.com
removed (visual) bell. '\a' sets the urgency flag if st is unfocused.
Aurélien Aptel aurelien.aptel@gmail.com
removed useless cursor init. and renamed xcursor() to xdrawcursor().
Aurélien Aptel aurelien.aptel@gmail.com
added support for the "magic margin", changed c.hide to c.state, changed xcursor() to use term instead of a parameter and fixed the cursor position after setting a scrolling region.
Aurélien Aptel aurelien.aptel@gmail.com
removed old VT52 escapes, fixed VT100 IND.
Aurélien Aptel aurelien.aptel@gmail.com
fixed optimized drawing routine and factored some code.
Aurélien Aptel aurelien.aptel@gmail.com
fixed pixmap buffer drawing.
Aurélien Aptel aurelien.aptel@gmail.com
added a XFlush() in xbell().
Aurélien Aptel aurelien.aptel@gmail.com
moved term.hidec in term.c for consistency, put back delay in xbell() along with duration in config.h, factored some code in tnew()/treset() and cleaned some code.
Aurélien Aptel aurelien.aptel@gmail.com
merged tscroll() with tscrollup().
Aurélien Aptel aurelien.aptel@gmail.com
st now runs on Linux, OpenBSD and FreeBSD.
Aurélien Aptel aurelien.aptel@gmail.com
removed XINERAMA from config.mk and fixed a segfault when st is started without a display. (thx Hiltjo Posthuma)
Aurélien Aptel aurelien.aptel@gmail.com
fixed potential bug in IS_SET().
Aurélien Aptel aurelien.aptel@gmail.com
merged tcursorwrap() with tnewline(), added few comments and updated copyright.
Aurélien Aptel aurelien.aptel@gmail.com
cleaned some spaces.
Aurélien Aptel aurelien.aptel@gmail.com
added macro to test flags, removed tmovecursor().
Aurélien Aptel aurelien.aptel@gmail.com
faster resizing.
Aurélien Aptel aurelien.aptel@gmail.com
close master/slave pty in the shell process.
Aurélien Aptel aurelien.aptel@gmail.com
clean \t.
Aurélien Aptel aurelien.aptel@gmail.com
update function prototypes.
Aurélien Aptel aurelien.aptel@gmail.com
fix \b and clean \t.
Aurélien Aptel aurelien.aptel@gmail.com
added F1-12 key, fixed DCH and ICH.
Aurélien Aptel aurelien.aptel@gmail.com
fixed backspace problem, updated terminfo entry and moved TNAME in config.h.
Aurélien Aptel aurelien.aptel@gmail.com
renamed a function.
Aurélien Aptel aurelien.aptel@gmail.com
applied Devin J Pohly's st color info patches, thanks Devin!
Anselm R Garbe anselm@garbe.us
fix gcc warnings
pancake@nopcode.org unknown
fixed background color bug (thx Devin J. Pohly).
Aurélien Aptel aurelien.aptel@gmail.com
added PBaseSize hint and set default title to "st".
Aurélien Aptel aurelien.aptel@gmail.com
rearranged code, resize fixed.
Aurélien Aptel aurelien.aptel@gmail.com
little clean up.
Aurélien Aptel aurelien.aptel@gmail.com
use SHELL environment variable (thx Thomas Adam)
Aurélien Aptel aurelien.aptel@gmail.com
double-buffering added using pixmap (finally). results in a lot of simplification : - no more dirty flags (perf are good enough). - no more ugly gfx call in emulation functions. LINESPACE removed from config.h. BORDER is now handled correctly.
Aurélien Aptel aurelien.aptel@gmail.com
bold attribute is back. visibility of the cursor is not saved/loaded anymore. scrolling up/down is fixed. added RI and RIS sequences. fixed cursor drawing bug.
Aurélien Aptel aurelien.aptel@gmail.com
added VT100 NEL.
Aurélien Aptel aurelien.aptel@gmail.com
added VT100 RI.
Aurélien Aptel aurelien.aptel@gmail.com
added VT100 save&load cursor support.
Aurélien Aptel aurelien.aptel@gmail.com
ECH handled correctly.
Aurélien Aptel aurelien.aptel@gmail.com
more escapes & more compability: cursor keys are handled in kpress according to the Application Mode (DECPAM). define & enum were renamed. tcursor() is now tmovecursor() which is more correct. tcpos() is now tcursor(), as DECSC is also supposed to save attributes. capnames are indicated whenever possible. Currently: alsamixer looks fine, totally usable. ncmpc is almost ok. emacs looks like shit.
Aurélien Aptel aurelien.aptel@gmail.com
graphic charset and a few more escapes.
Aurélien Aptel aurelien.aptel@gmail.com
TERM set to xterm by default (which broke a lot of stuff), better escape handling (title), and a little clean up.
Aurélien Aptel aurelien.aptel@gmail.com
drawing is faster but the bold attr is not supported anymore.
Aurélien Aptel aurelien.aptel@gmail.com
Fixed possible segfault by reverting to the key struct (again).
Aurélien Aptel aurelien.aptel@gmail.com
only compile tdump if DEBUG flag is set
Anselm R Garbe garbeam@gmail.com
we definately need pixmaps for the drawing, currently drawing into the window is painfully slow! much more slower than drawing into a pixmap and mapping that when finished -- several optimisations
Anselm R Garbe garbeam@gmail.com
reverted back to the old Key struct.
Aurélien Aptel aurelien.aptel@gmail.com
updated "key" to a lookup table.
Aurélien Aptel aurelien.aptel@gmail.com
removed old unused cursor() proto.
Aurélien Aptel aurelien.aptel@gmail.com
fixed the scrolling bug and cleaned some stuff.
Aurélien Aptel aurelien.aptel@gmail.com
dump escseq if not handled.
Aurélien Aptel aurelien.aptel@gmail.com
clean up.
Aurélien Aptel aurelien.aptel@gmail.com
added/removed files, updated Makefile.
Aurélien Aptel aurelien.aptel@gmail.com
made kpress() more flexible, removed st.h, added config.h.
Aurélien Aptel aurelien.aptel@gmail.com
updated TODO.
Aurélien Aptel aurelien.aptel@gmail.com
added sigchld handler, cleaned error checking.
Aurélien Aptel aurelien.aptel@gmail.com
cleaned up (removed space indentation). select/event bug fixed.
Aurélien Aptel aurelien.aptel@gmail.com
fixed a memory leak & segfault in tresize.
Aurélien Aptel aurelien.aptel@gmail.com
updated TODO.
Aurélien Aptel aurelien.aptel@gmail.com
tab moves the cursor instead of inserting spaces.
Aurélien Aptel aurelien.aptel@gmail.com
handle tabulation (still not perfect)
Aurélien Aptel aurelien.aptel@gmail.com
removed truecolor stuff
Aurélien Aptel aurelien.aptel@gmail.com
removed the truecolor stuff
Aurélien Aptel aurelien.aptel@gmail.com
same thing, really fixed this time.
Aurélien Aptel aurelien.aptel@gmail.com
added some error checking in xinit (fixed the segfault caused by a missing font)
Aurélien Aptel aurelien.aptel@gmail.com
Removed unused variable and cleaned some comment.
Aurélien Aptel aurelien.aptel@gmail.com
backport of local changes
Anselm R Garbe garbeam@gmail.com
add accidentally omitted word
Matthias-Christian Ott ott@enolink.de
use stdio(3)
Matthias-Christian Ott ott@enolink.de
add description of std
Matthias-Christian Ott ott@enolink.de
add prototype for command parsing
Matthias-Christian Ott ott@enolink.de
correct year of copyright notice
Matthias-Christian Ott ott@enolink.de
simplify Makefile Due to consideration of POSIX compliance issues config.mk had to be removed. Configuration variables can be overridden by environment variables or specified via command line. Additionally all pretty-printed messages were removed and built-in rules are used. This also simplifies and purges the Makefile.
Matthias-Christian Ott ott@enolink.de
reunite pty.c with std.c
Matthias-Christian Ott ott@enolink.de
correct programme name
Matthias-Christian Ott ott@enolink.de
use errx() for help and version messages
Matthias-Christian Ott ott@enolink.de
merge with backout head
Matthias-Christian Ott ott@enolink.de
remove TODO
Matthias-Christian Ott ott@enolink.de
make ptm and pts static
Matthias-Christian Ott ott@enolink.de
remove useless variable
Matthias-Christian Ott ott@enolink.de
remove emallocz()
Matthias-Christian Ott ott@enolink.de
replace eprint() functions with BSD error functions
Matthias-Christian Ott ott@enolink.de
simplify flushing
Matthias-Christian Ott ott@enolink.de
correct buffering
Matthias-Christian Ott ott@enolink.de
make local functions and variables static
Matthias-Christian Ott ott@enolink.de
add select(2)-based i/o multiplexing
Matthias-Christian Ott ott@enolink.de
drop stdio usage Std requires I/O multiplexing which is very complicated with stdio, because it provides no transparent buffering.
Matthias-Christian Ott ott@enolink.de
make st and std separate programmes
Matthias-Christian Ott ott@enolink.de
add missing header file
Matthias-Christian Ott ott@enolink.de
assume glibc by default
Matthias-Christian Ott ott@enolink.de
source utility functions out to util.c
Matthias-Christian Ott ott@enolink.de
add copyright comment
Matthias-Christian Ott ott@enolink.de
source getpty() out to pty.c
Matthias-Christian Ott ott@enolink.de
update TODO
Matthias-Christian Ott ott@enolink.de
correct function name
Matthias-Christian Ott ott@enolink.de
remove xinerama flags The xinerama related variables in config.mk are a relict of dwm and therefore should be removed.
Matthias-Christian Ott ott@enolink.de
add missing header file
Matthias-Christian Ott ott@enolink.de
add parser loop
Matthias-Christian Ott ott@enolink.de
remove useless variable
Matthias-Christian Ott ott@enolink.de
replace state with separate variables
Matthias-Christian Ott ott@enolink.de
terminate error message with newline
Matthias-Christian Ott ott@enolink.de
correct LENGTH()
Matthias-Christian Ott ott@enolink.de
simplify control flow
Matthias-Christian Ott ott@enolink.de
remove debug code
Matthias-Christian Ott ott@enolink.de
remove stdio slave pty opening
Matthias-Christian Ott ott@enolink.de
drop support for proprietary UNIX variants Proprietary UNIX variants like AIX, HP-UX or SCO UNIX are nowadays rarely used and maintaining compatibility to non-standard operating systems interfaces is wasteful and practically useless. Projects like xterm suffer from backward compatibility to decades-old UNIX variants and terminal standards. This does not conform to st's design goals.
Matthias-Christian Ott ott@enolink.de
slight changes
Anselm R Garbe garbeam@gmail.com
applied Matthias-Christians changes to std.c
Anselm R Garbe garbeam@gmail.com
added some new files for the initial rewrite of st from scratch
Anselm R Garbe garbeam@gmail.com
added new TODO
arg@localhost.localdomain unknown
Backed out changeset d2bb4220fdf3 Ptm and pts are used by pty.c, thus they have to be non-static.
Matthias-Christian Ott ott@enolink.de
fix warning
pancake pancake@nopcode.org
Fix unused variable issue and OSX includes
pancake@nopcode.org unknown
change "op" cap in terminfo entry to xterm/rxvt value.
Aurélien Aptel aurelien.aptel@gmail.com
fix custom key handling.
Aurélien Aptel aurelien.aptel@gmail.com
drawregion() only copies region on screen.
Aurélien Aptel aurelien.aptel@gmail.com
some minor fixes
anselm@garbe.us unknown