st.git
14 years agos/hasfocus/focus/ for consistency.
Aurélien Aptel [Sat, 11 Sep 2010 14:07:36 +0000 (16:07 +0200)]
s/hasfocus/focus/ for consistency.

14 years agodon't draw if the window is not visible.
Aurélien Aptel [Sat, 11 Sep 2010 14:05:57 +0000 (16:05 +0200)]
don't draw if the window is not visible.

14 years agouse xclear() in draw().
Aurélien Aptel [Sat, 11 Sep 2010 14:01:41 +0000 (16:01 +0200)]
use xclear() in draw().

14 years agouse XCreateWindow(), set gravity bit.
Aurélien Aptel [Sat, 11 Sep 2010 13:59:54 +0000 (15:59 +0200)]
use XCreateWindow(), set gravity bit.

14 years agocleaning st.info. added comment in st.c for DECSCNM.
Aurélien Aptel [Thu, 2 Sep 2010 22:15:43 +0000 (00:15 +0200)]
cleaning st.info. added comment in st.c for DECSCNM.

14 years agocleaning st.info. fixed cvvis.
Aurélien Aptel [Thu, 2 Sep 2010 22:00:41 +0000 (00:00 +0200)]
cleaning st.info. fixed cvvis.

14 years agoset terminal colors to xterm default ones.
Aurélien Aptel [Thu, 2 Sep 2010 20:35:55 +0000 (22:35 +0200)]
set terminal colors to xterm default ones.

14 years agoremoved gfx chars not present in xterm acsc.
Aurélien Aptel [Thu, 2 Sep 2010 19:59:05 +0000 (21:59 +0200)]
removed gfx chars not present in xterm acsc.

14 years agofixed start/end sequence of gfx.
Aurélien Aptel [Thu, 2 Sep 2010 18:24:33 +0000 (20:24 +0200)]
fixed start/end sequence of gfx.

14 years agoundefined gfx doesn't draw \0.
Aurélien Aptel [Thu, 2 Sep 2010 18:21:40 +0000 (20:21 +0200)]
undefined gfx doesn't draw \0.

14 years agofixed makefile.
Aurélien Aptel [Thu, 2 Sep 2010 00:03:53 +0000 (02:03 +0200)]
fixed makefile.

14 years agoadded manpage.
Aurélien Aptel [Thu, 2 Sep 2010 00:02:56 +0000 (02:02 +0200)]
added manpage.

14 years agoresize from the top.
Aurélien Aptel [Wed, 1 Sep 2010 23:42:03 +0000 (01:42 +0200)]
resize from the top.

14 years agoadded -e and -t option.
Aurélien Aptel [Wed, 1 Sep 2010 23:37:01 +0000 (01:37 +0200)]
added -e and -t option.

14 years agofactored code and fixed behaviour of tnewline().
Aurélien Aptel [Wed, 1 Sep 2010 21:20:54 +0000 (23:20 +0200)]
factored code and fixed behaviour of tnewline().

14 years agoupdated TODO.
Aurélien Aptel [Wed, 1 Sep 2010 20:54:28 +0000 (22:54 +0200)]
updated TODO.

14 years agostarted to go through st.info and fix things.
Aurélien Aptel [Wed, 1 Sep 2010 20:54:07 +0000 (22:54 +0200)]
started to go through st.info and fix things.

14 years agocapabilities sorted by capname in st.info. copy acsc from xterm.
Aurélien Aptel [Wed, 1 Sep 2010 17:47:46 +0000 (19:47 +0200)]
capabilities sorted by capname in st.info. copy acsc from xterm.

14 years agoremoved debug code.
Aurélien Aptel [Wed, 1 Sep 2010 16:12:54 +0000 (18:12 +0200)]
removed debug code.

14 years agofixed IL and DL.
Aurélien Aptel [Wed, 1 Sep 2010 15:21:09 +0000 (17:21 +0200)]
fixed IL and DL.

14 years agofactor and cleanup code.
Aurélien Aptel [Wed, 1 Sep 2010 14:26:12 +0000 (16:26 +0200)]
factor and cleanup code.

14 years agoadded correct line drawing characters for default font.
Aurélien Aptel [Tue, 31 Aug 2010 22:30:39 +0000 (00:30 +0200)]
added correct line drawing characters for default font.

14 years agouse struct instead of array.
Aurélien Aptel [Tue, 31 Aug 2010 16:30:18 +0000 (18:30 +0200)]
use struct instead of array.

14 years agocleanup.
Aurélien Aptel [Tue, 31 Aug 2010 16:22:59 +0000 (18:22 +0200)]
cleanup.

14 years agofix segfault when selecting big buffers
pancake@nopcode.org [Tue, 31 Aug 2010 15:36:55 +0000 (17:36 +0200)]
fix segfault when selecting big buffers

shift+insert paste clipboard
honor CFLAGS and LDFLAGS in config.mk

14 years agofix build.
Aurélien Aptel [Tue, 31 Aug 2010 14:56:27 +0000 (16:56 +0200)]
fix build.

14 years agoadd selinit() and renamed clipboard_* to sel*.
Aurélien Aptel [Tue, 31 Aug 2010 14:53:34 +0000 (16:53 +0200)]
add selinit() and renamed clipboard_* to sel*.

14 years agomove event configuration in xinit().
Aurélien Aptel [Tue, 31 Aug 2010 14:30:11 +0000 (16:30 +0200)]
move event configuration in xinit().

14 years agouse one global struct instead of many vars for selection. Cleanup.
Aurélien Aptel [Tue, 31 Aug 2010 13:36:13 +0000 (15:36 +0200)]
use one global struct instead of many vars for selection. Cleanup.

14 years agouse GLYPH_SET to test if a char is set; cleanup.
Aurélien Aptel [Tue, 31 Aug 2010 12:52:52 +0000 (14:52 +0200)]
use GLYPH_SET to test if a char is set; cleanup.

14 years agofix crash for small windows
pancake@nopcode.org [Tue, 31 Aug 2010 09:40:57 +0000 (11:40 +0200)]
fix crash for small windows

use unconditional infinite loops

14 years agotoggle ATTR_REVERSE on selected text, factored some code and fixed Makefile.
Aurélien Aptel [Tue, 31 Aug 2010 09:02:17 +0000 (11:02 +0200)]
toggle ATTR_REVERSE on selected text, factored some code and fixed Makefile.

14 years agofix build
pancake [Mon, 30 Aug 2010 21:49:15 +0000 (23:49 +0200)]
fix build

use config.def.h mechanism
add SHELL in config.h

14 years agoinitial implementation of selection and clipboard
pancake [Mon, 30 Aug 2010 21:41:37 +0000 (23:41 +0200)]
initial implementation of selection and clipboard

14 years agofix segfault
pancake@nopcode.org [Mon, 30 Aug 2010 15:07:54 +0000 (17:07 +0200)]
fix segfault

14 years agoadded support for alternate screen.
Aurélien Aptel [Mon, 30 Aug 2010 14:48:18 +0000 (16:48 +0200)]
added support for alternate screen.

14 years agocursor is hid when unfocused.
Aurélien Aptel [Mon, 30 Aug 2010 13:28:29 +0000 (15:28 +0200)]
cursor is hid when unfocused.

14 years agouse predefined OS macro instead of uname.
Aurélien Aptel [Mon, 30 Aug 2010 11:04:19 +0000 (13:04 +0200)]
use predefined OS macro instead of uname.

14 years agost should compile on NetBSD.
Aurélien Aptel [Sun, 29 Aug 2010 23:20:38 +0000 (01:20 +0200)]
st should compile on NetBSD.

14 years agoremoved pty.h. minimal system guessing added in config.mk.
Aurélien Aptel [Mon, 30 Aug 2010 01:12:11 +0000 (03:12 +0200)]
removed pty.h. minimal system guessing added in config.mk.

14 years agoremoved (visual) bell. '\a' sets the urgency flag if st is unfocused.
Aurélien Aptel [Mon, 30 Aug 2010 01:05:05 +0000 (03:05 +0200)]
removed (visual) bell. '\a' sets the urgency flag if st is unfocused.

14 years agoremoved useless cursor init. and renamed xcursor() to xdrawcursor().
Aurélien Aptel [Sun, 29 Aug 2010 23:45:57 +0000 (01:45 +0200)]
removed useless cursor init. and renamed xcursor() to xdrawcursor().

14 years agoadded support for the "magic margin", changed c.hide to c.state, changed xcursor...
Aurélien Aptel [Sun, 29 Aug 2010 23:35:37 +0000 (01:35 +0200)]
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.

14 years agoremoved old VT52 escapes, fixed VT100 IND.
Aurélien Aptel [Sun, 29 Aug 2010 23:19:05 +0000 (01:19 +0200)]
removed old VT52 escapes, fixed VT100 IND.

14 years agofix warning
pancake [Sun, 29 Aug 2010 22:32:49 +0000 (00:32 +0200)]
fix warning

14 years agofixed optimized drawing routine and factored some code.
Aurélien Aptel [Sun, 29 Aug 2010 18:12:44 +0000 (20:12 +0200)]
fixed optimized drawing routine and factored some code.

14 years agofixed pixmap buffer drawing.
Aurélien Aptel [Sun, 29 Aug 2010 17:41:36 +0000 (19:41 +0200)]
fixed pixmap buffer drawing.

14 years agoadded a XFlush() in xbell().
Aurélien Aptel [Sun, 29 Aug 2010 17:14:05 +0000 (19:14 +0200)]
added a XFlush() in xbell().

14 years agomoved term.hidec in term.c for consistency, put back delay in xbell()
Aurélien Aptel [Sun, 29 Aug 2010 16:55:15 +0000 (18:55 +0200)]
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.

14 years agomerged tscroll() with tscrollup().
Aurélien Aptel [Sun, 29 Aug 2010 10:27:59 +0000 (12:27 +0200)]
merged tscroll() with tscrollup().

14 years agost now runs on Linux, OpenBSD and FreeBSD.
Aurélien Aptel [Sat, 28 Aug 2010 01:18:22 +0000 (03:18 +0200)]
st now runs on Linux, OpenBSD and FreeBSD.

14 years agoremoved XINERAMA from config.mk and fixed a segfault when st is
Aurélien Aptel [Fri, 27 Aug 2010 11:53:27 +0000 (13:53 +0200)]
removed XINERAMA from config.mk and fixed a segfault when st is

started without a display. (thx Hiltjo Posthuma)

14 years agofixed potential bug in IS_SET().
Aurélien Aptel [Thu, 26 Aug 2010 22:58:28 +0000 (00:58 +0200)]
fixed potential bug in IS_SET().

14 years agomerged tcursorwrap() with tnewline(), added few comments and updated copyright.
Aurélien Aptel [Thu, 26 Aug 2010 22:28:27 +0000 (00:28 +0200)]
merged tcursorwrap() with tnewline(), added few comments and updated copyright.

14 years agocleaned some spaces.
Aurélien Aptel [Thu, 26 Aug 2010 22:05:50 +0000 (00:05 +0200)]
cleaned some spaces.

14 years agoadded macro to test flags, removed tmovecursor().
Aurélien Aptel [Thu, 26 Aug 2010 21:43:08 +0000 (23:43 +0200)]
added macro to test flags, removed tmovecursor().

14 years agofaster resizing.
Aurélien Aptel [Thu, 26 Aug 2010 19:37:12 +0000 (21:37 +0200)]
faster resizing.

14 years agoclose master/slave pty in the shell process.
Aurélien Aptel [Thu, 26 Aug 2010 19:36:21 +0000 (21:36 +0200)]
close master/slave pty in the shell process.

14 years agoclean \t.
Aurélien Aptel [Thu, 26 Aug 2010 19:34:37 +0000 (21:34 +0200)]
clean \t.

14 years agoupdate function prototypes.
Aurélien Aptel [Thu, 26 Aug 2010 19:33:53 +0000 (21:33 +0200)]
update function prototypes.

14 years agofix \b and clean \t.
Aurélien Aptel [Thu, 26 Aug 2010 19:32:34 +0000 (21:32 +0200)]
fix \b and clean \t.

14 years agoadded F1-12 key, fixed DCH and ICH.
Aurélien Aptel [Sun, 22 Aug 2010 17:46:46 +0000 (19:46 +0200)]
added F1-12 key, fixed DCH and ICH.

14 years agofixed backspace problem, updated terminfo entry and moved TNAME in config.h.
Aurélien Aptel [Thu, 19 Aug 2010 10:46:54 +0000 (12:46 +0200)]
fixed backspace problem, updated terminfo entry and moved TNAME in config.h.

14 years agorenamed a function.
Aurélien Aptel [Fri, 13 Aug 2010 20:43:30 +0000 (22:43 +0200)]
renamed a function.

14 years agoapplied Devin J Pohly's st color info patches, thanks Devin!
Anselm R Garbe [Sat, 24 Jul 2010 11:09:14 +0000 (12:09 +0100)]
applied Devin J Pohly's st color info patches, thanks Devin!

14 years agofix gcc warnings
pancake@nopcode.org [Thu, 8 Jul 2010 15:34:02 +0000 (17:34 +0200)]
fix gcc warnings

14 years agofixed background color bug (thx Devin J. Pohly).
Aurélien Aptel [Thu, 8 Jul 2010 14:31:41 +0000 (16:31 +0200)]
fixed background color bug (thx Devin J. Pohly).

14 years agoadded PBaseSize hint and set default title to "st".
Aurélien Aptel [Thu, 3 Jun 2010 21:14:37 +0000 (23:14 +0200)]
added PBaseSize hint and set default title to "st".

14 years agorearranged code, resize fixed.
Aurélien Aptel [Wed, 2 Jun 2010 14:01:30 +0000 (16:01 +0200)]
rearranged code, resize fixed.

14 years agolittle clean up.
Aurélien Aptel [Mon, 26 Apr 2010 22:04:29 +0000 (00:04 +0200)]
little clean up.

14 years agouse SHELL environment variable (thx Thomas Adam)
Aurélien Aptel [Mon, 26 Apr 2010 17:20:53 +0000 (19:20 +0200)]
use SHELL environment variable (thx Thomas Adam)

14 years agodouble-buffering added using pixmap (finally).
Aurélien Aptel [Mon, 15 Mar 2010 22:56:38 +0000 (23:56 +0100)]
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.

14 years agobold attribute is back.
Aurélien Aptel [Thu, 11 Mar 2010 22:50:50 +0000 (23:50 +0100)]
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.

14 years agoadded VT100 NEL.
Aurélien Aptel [Sun, 21 Feb 2010 13:59:32 +0000 (14:59 +0100)]
added VT100 NEL.

14 years agoadded VT100 RI.
Aurélien Aptel [Sun, 21 Feb 2010 13:39:31 +0000 (14:39 +0100)]
added VT100 RI.

14 years agoadded VT100 save&load cursor support.
Aurélien Aptel [Sun, 21 Feb 2010 13:28:32 +0000 (14:28 +0100)]
added VT100 save&load cursor support.

14 years agoECH handled correctly.
Aurélien Aptel [Sun, 21 Feb 2010 13:14:58 +0000 (14:14 +0100)]
ECH handled correctly.

14 years agomore escapes & more compability:
Aurélien Aptel [Mon, 8 Feb 2010 22:16:55 +0000 (23:16 +0100)]
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.

14 years agographic charset and a few more escapes.
Aurélien Aptel [Wed, 3 Feb 2010 15:18:04 +0000 (16:18 +0100)]
graphic charset and a few more escapes.

14 years agoTERM set to xterm by default (which broke a lot of stuff), better escape handling...
Aurélien Aptel [Wed, 3 Feb 2010 02:25:35 +0000 (03:25 +0100)]
TERM set to xterm by default (which broke a lot of stuff), better escape handling (title), and a little clean up.

15 years agodrawing is faster but the bold attr is not supported anymore.
Aurélien Aptel [Wed, 28 Oct 2009 13:34:22 +0000 (14:34 +0100)]
drawing is faster but the bold attr is not supported anymore.

15 years agoFixed possible segfault by reverting to the key struct (again).
Aurélien Aptel [Mon, 7 Sep 2009 19:19:29 +0000 (21:19 +0200)]
Fixed possible segfault by reverting to the key struct (again).

15 years agoonly compile tdump if DEBUG flag is set
Anselm R Garbe [Fri, 10 Jul 2009 15:27:14 +0000 (16:27 +0100)]
only compile tdump if DEBUG flag is set

15 years agowe definately need pixmaps for the drawing, currently drawing into the window is...
Anselm R Garbe [Fri, 10 Jul 2009 15:23:11 +0000 (16:23 +0100)]
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

15 years agoreverted back to the old Key struct.
Aurélien Aptel [Sun, 21 Jun 2009 17:52:06 +0000 (19:52 +0200)]
reverted back to the old Key struct.

15 years agoupdated "key" to a lookup table.
Aurélien Aptel [Sun, 21 Jun 2009 17:37:12 +0000 (19:37 +0200)]
updated "key" to a lookup table.

15 years agoremoved old unused cursor() proto.
Aurélien Aptel [Wed, 17 Jun 2009 18:44:36 +0000 (20:44 +0200)]
removed old unused cursor() proto.

15 years agofixed the scrolling bug and cleaned some stuff.
Aurélien Aptel [Wed, 17 Jun 2009 00:58:40 +0000 (02:58 +0200)]
fixed the scrolling bug and cleaned some stuff.

15 years agodump escseq if not handled.
Aurélien Aptel [Tue, 16 Jun 2009 10:34:10 +0000 (12:34 +0200)]
dump escseq if not handled.

15 years agoclean up.
Aurélien Aptel [Tue, 16 Jun 2009 00:41:45 +0000 (02:41 +0200)]
clean up.

15 years agoadded/removed files, updated Makefile.
Aurélien Aptel [Tue, 16 Jun 2009 00:33:38 +0000 (02:33 +0200)]
added/removed files, updated Makefile.

15 years agomade kpress() more flexible, removed st.h, added config.h.
Aurélien Aptel [Tue, 16 Jun 2009 00:23:46 +0000 (02:23 +0200)]
made kpress() more flexible, removed st.h, added config.h.

15 years agoupdated TODO.
Aurélien Aptel [Thu, 11 Jun 2009 15:03:25 +0000 (17:03 +0200)]
updated TODO.

15 years agoadded sigchld handler, cleaned error checking.
Aurélien Aptel [Thu, 11 Jun 2009 14:41:14 +0000 (16:41 +0200)]
added sigchld handler, cleaned error checking.

15 years agocleaned up (removed space indentation). select/event bug fixed.
Aurélien Aptel [Wed, 27 May 2009 23:33:01 +0000 (01:33 +0200)]
cleaned up (removed space indentation). select/event bug fixed.

15 years agofixed a memory leak & segfault in tresize.
Aurélien Aptel [Tue, 26 May 2009 00:21:02 +0000 (02:21 +0200)]
fixed a memory leak & segfault in tresize.

15 years agoupdated TODO.
Aurélien Aptel [Thu, 14 May 2009 22:40:47 +0000 (00:40 +0200)]
updated TODO.

15 years agotab moves the cursor instead of inserting spaces.
Aurélien Aptel [Thu, 14 May 2009 22:39:51 +0000 (00:39 +0200)]
tab moves the cursor instead of inserting spaces.

15 years agohandle tabulation (still not perfect)
Aurélien Aptel [Wed, 13 May 2009 23:03:17 +0000 (01:03 +0200)]
handle tabulation (still not perfect)

15 years agoremoved truecolor stuff
Aurélien Aptel [Wed, 13 May 2009 22:28:10 +0000 (00:28 +0200)]
removed truecolor stuff