]> git.armaanb.net Git - st.git/log
st.git
6 years agoLet the user specify C and LD FLAGS
Quentin Rameau [Tue, 11 Jul 2017 22:26:35 +0000 (00:26 +0200)]
Let the user specify C and LD FLAGS

6 years agoDo not obfuscate what make is doing.
Quentin Rameau [Tue, 11 Jul 2017 22:24:51 +0000 (00:24 +0200)]
Do not obfuscate what make is doing.

Change some styling too while we're at it.

6 years agoAdd color change terminfo capabilities
Marc André Tanner [Mon, 15 May 2017 10:45:41 +0000 (12:45 +0200)]
Add color change terminfo capabilities

6 years agoAdd bold off SGR
Quentin Rameau [Sun, 28 May 2017 07:56:57 +0000 (09:56 +0200)]
Add bold off SGR

7 years agost.1: modify man page to accurately reflect default keybindings
greg.reagle@umbc.edu [Mon, 10 Apr 2017 16:24:03 +0000 (18:24 +0200)]
st.1: modify man page to accurately reflect default keybindings

Attached.

===> 2/ (text/x-patch) [file]
cp /mail/fs/mbox/298/2/body /usr/k0ga/0001-st.1-modify-man-page-to-accurately-reflect-default-k.patch

From 265db94b1eca5850d484f86b7db4af8e57822cfe Mon Sep 17 00:00:00 2001
From: Greg Reagle <greg.reagle@umbc.edu>
Date: Sun, 9 Apr 2017 23:05:47 -0400
Subject: [PATCH] st.1: modify man page to accurately reflect default
 keybindings

7 years agoSimplify how we keep ATTRs under cursor
Quentin Rameau [Tue, 4 Apr 2017 15:20:55 +0000 (17:20 +0200)]
Simplify how we keep ATTRs under cursor

Thanks to tarug0 for the suggestion/patch.

7 years agoFix commented out code
Alexander Krotov [Sat, 25 Mar 2017 20:02:42 +0000 (23:02 +0300)]
Fix commented out code

7 years agokeep some glyph modes for the cursor
Nils Reuße [Wed, 29 Mar 2017 16:34:12 +0000 (18:34 +0200)]
keep some glyph modes for the cursor

st currently does not keep any mode for the cursor that was active
in the underlying glyph (e.g. italic text), the mode is always
ATTR_NULL [1].  At [2] you can find a screenshot that shows the
implications.  Other terminals (at least vte-based, such as
XFCE-terminal) keep some modes for the cursor.  I find the current
behaviour very disruptive, so here is a patch that keeps a few
(arbitrarily chosen) modes for the cursor.

[1] http://git.suckless.org/st/tree/st.c#n3963
[2] http://i.imgur.com/R2yCEaC.png

7 years agoSupport xterm Ms feature to set clipboard
osandov@osandov.com [Sat, 18 Mar 2017 10:55:04 +0000 (11:55 +0100)]
Support xterm Ms feature to set clipboard

This is used by, e.g., tmux.

7 years agoChange default keybindings
Roberto E. Vargas Caballero [Wed, 25 Jan 2017 18:17:38 +0000 (19:17 +0100)]
Change default keybindings

CTRL+SHIFT is an impossible combination in the terminal world
(0x20 | x & 0x1F), so it is perfect to be used for internals
shortcuts of terminals, and being a double combination
reduces the prossibility of having comflicts.

7 years agoSplit X-specific code into x.c
Michael Forney [Fri, 20 Jan 2017 08:06:39 +0000 (00:06 -0800)]
Split X-specific code into x.c

7 years agoMove column and row default numbers into config.h
fpqc [Wed, 14 Dec 2016 06:51:27 +0000 (06:51 +0000)]
Move column and row default numbers into config.h

7 years agoRevert "Initial font size issue."
Roberto E. Vargas Caballero [Thu, 24 Nov 2016 19:21:19 +0000 (20:21 +0100)]
Revert "Initial font size issue."

This reverts commit 424202798b02554092ba84dd59fb7b79b59b7b75.

7 years agoFixed 'missing glyph doesn't use fontconfig config substitutions' bug
Spencer Phippen [Wed, 23 Nov 2016 18:17:59 +0000 (19:17 +0100)]
Fixed 'missing glyph doesn't use fontconfig config substitutions' bug

XftFontMatch does display-specific font configuration (commit 528241a).
Nice. Unfortunately, when we switched from FcFontMatch, we also stopped
storing the post-Fc{Config,Default}Substitute FcPattern for future
lookups. The result is that if a glyph isn't found in the primary font,
secondary font lookups use the original FcPattern, not the configured
one. If you have custom fontconfig rules (like me), this can be
disappointing.

I basically just copied the guts out of XftFontMatch[1] and saved
the intermediate configured FcPattern. Could be related to the bug that
inspired commit 4242027.

[1]: https://cgit.freedesktop.org/xorg/lib/libXft/tree/src/xftfont.c

7 years agomake the various combinations of arrow keys and shift/control/meta work
Manuel Tobias Schiller [Mon, 14 Nov 2016 17:25:51 +0000 (18:25 +0100)]
make the various combinations of arrow keys and shift/control/meta work

When using st with screen, I've bound next, prev, new screen to
combinations like Ctrl-Alt-Right,Left,Down; xterm and (u)rxvt work fine
when this combination of modifiers is pressed, st does not seem to
transport all of them; a single modifier key is fine (e.g. Ctrl-Up,
Alt-Down etc., but combinations are not). While I'm not terribly
familiar with this, I have tried to hack config.h in a more or less
systematic way to generate the expected sequences.

7 years agoInitial font size issue.
ian@remmler.org [Fri, 11 Nov 2016 16:52:07 +0000 (17:52 +0100)]
Initial font size issue.

Hi,

When I specify a font by point size (I'm using "Inconsolata:size=12"),
characters that are substituted from another font because they are not in the
main one appear too small.  Doing a zoom reset fixes it.  For example:

Before: http://i.imgur.com/G4Mfv4X.png
After:  http://i.imgur.com/PMDhfQA.png

I found that adding the pixel size (acquired from the initial font load) to the
pattern then reloading the font fixes the problem.  I'm not sure if this is a
proper fix, though.

7 years agotic -s -> tic -sx (Treat unknown capabilities as user-defined.)
pl@ninthfloor.org [Fri, 11 Nov 2016 16:45:45 +0000 (17:45 +0100)]
tic -s -> tic -sx (Treat unknown capabilities as user-defined.)

7 years agoAdd tmux capabilities to st.info
pl@ninthfloor.org [Fri, 11 Nov 2016 16:45:46 +0000 (17:45 +0100)]
Add tmux capabilities to st.info

7 years agoMake strdump(), csidump(), print to stderr
pl@ninthfloor.org [Fri, 11 Nov 2016 16:45:52 +0000 (17:45 +0100)]
Make strdump(), csidump(), print to stderr

The two functions strdump(), csidump() are called to show errors and
their output is introduced by a message printed to stderr. Thus, it it
more consistent to have them print to stderr.

Moreover stderr is unbuffered (at least on Linux), making problems
immediately visible.

7 years agoDo not use color when font attributes are supported
Quentin Rameau [Sat, 22 Oct 2016 14:36:10 +0000 (16:36 +0200)]
Do not use color when font attributes are supported

If fontconfig gives us a font without the attributes we asked for,
display an alternative color instead.

7 years agost.1: add an entry for ISO-14755 shortcut
Quentin Rameau [Sat, 22 Oct 2016 08:42:46 +0000 (10:42 +0200)]
st.1: add an entry for ISO-14755 shortcut

7 years agoAdd support for iso14755
Quentin Rameau [Sat, 8 Oct 2016 14:22:18 +0000 (16:22 +0200)]
Add support for iso14755

We launch dmenu for getting a codepoint, then convert it and send it to
the terminal.

7 years agoAdd missing device path to '-l' example
Klemens Nanni [Thu, 13 Oct 2016 14:28:50 +0000 (16:28 +0200)]
Add missing device path to '-l' example

Also, it's ttyS0 not ttySO.

7 years agoAdd parsing of DCS q sequences
Roberto E. Vargas Caballero [Wed, 14 Sep 2016 06:27:32 +0000 (08:27 +0200)]
Add parsing of DCS q sequences

These sequences are used to operate with sixels, but they are still
str sequences, so they are finished with \a, ST or with a C1 control
code. This patch also disables utf8 handling for the case of sixels.

7 years agoAdd support for enabling/disabling utf
Roberto E. Vargas Caballero [Tue, 13 Sep 2016 12:01:18 +0000 (14:01 +0200)]
Add support for enabling/disabling utf

There are some ocasions where we want to disable the enconding/decoding of utf8, mainly
because it adds an important overhead. This is partial patch for ESC % G and ESC % @,
where they modified the way that st reads and write from/to the serial line, but it does
not modifies how it interacts with the X window part.

7 years agoDelete ncv capability from terminfo
Roberto E. Vargas Caballero [Fri, 9 Sep 2016 11:11:06 +0000 (13:11 +0200)]
Delete ncv capability from terminfo

We do not need to disable the previous ncv definition, because
there is not previous definition.

7 years agost.info: do not prevent st from displaying attributes
Quentin Rameau [Thu, 8 Sep 2016 10:57:43 +0000 (12:57 +0200)]
st.info: do not prevent st from displaying attributes

With ncv set to 3, we prevent st from displaying A_STANDOUT and
A_UNDERLINE with colors while our virtual terminal is capable of it.

7 years agoUpdate the LICENSE.
Christoph Lohmann [Thu, 11 Aug 2016 14:30:29 +0000 (16:30 +0200)]
Update the LICENSE.

This is for the next release.

7 years ago0.7 release
Christoph Lohmann [Thu, 11 Aug 2016 14:25:58 +0000 (16:25 +0200)]
0.7 release

7 years agoChange who's expanding tabs.
Christoph Lohmann [Wed, 20 Jul 2016 11:56:15 +0000 (13:56 +0200)]
Change who's expanding tabs.

7 years agoAdd some hint to have the pseudo terminal in the right mode.
Christoph Lohmann [Wed, 20 Jul 2016 11:52:31 +0000 (13:52 +0200)]
Add some hint to have the pseudo terminal in the right mode.

If you don't make sure that the terminal does not expand tabs to spaces, of
course such a setting won't work.

7 years agoAdd comment about tabspaces.
Christoph Lohmann [Wed, 20 Jul 2016 11:00:43 +0000 (13:00 +0200)]
Add comment about tabspaces.

st.info needs to be changed too, when tabspaces are changed.

7 years agoConsistent Alt+BackSpace behavior
Alive 4ever [Sun, 10 Jul 2016 06:38:04 +0000 (06:38 +0000)]
Consistent Alt+BackSpace behavior

The default config specifies BackSpace as "\177". The default behavior
should persist across modifier keys, commonly Mod1 (Alt or Meta) which
is widely used to delete a word on readline and text editors, notably
Emacs.

This will make Alt+BackSpace behaves as expected, i.e. sends "\033\177"
instead of "\033\010" as previous default behavior.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
7 years agoUse XftFontMatch in place of FcFontMatch.
Christoph Lohmann [Fri, 3 Jun 2016 13:02:32 +0000 (15:02 +0200)]
Use XftFontMatch in place of FcFontMatch.

git am -s didn't like your patch:

From: Mark Edgar <medgar123@gmail.com>

XftFontMatch calls XftDefaultSubstitute which configures various match
properties according to the user's configured Xft defaults (xrdb) as well as
according to the current display and screen. Most importantly, the screen DPI
is computed [1]. Without this, st uses a "default" DPI of 75 [2].

[1]: https://cgit.freedesktop.org/xorg/lib/libXft/tree/src/xftdpy.c?id=libXft-2.3.2#n535
[2]: https://cgit.freedesktop.org/fontconfig/tree/src/fcdefault.c?id=2.11.1#n255

7 years agodelete clipboard properties after pasting them
v4hn [Thu, 19 May 2016 10:16:57 +0000 (12:16 +0200)]
delete clipboard properties after pasting them

https://tronche.com/gui/x/icccm/sec-2.html#s-2.4 specifies:
> Once all the data in the selection has been retrieved,
> the requestor should delete the property in the SelectionNotify request

Most Clipboard-Owners ignore whether or not the property is already set,
so this is mostly a cosmetic change to keep the windows property list clean.

However, at least synergy decides to wait for the requestor to delete
the properties if they are already set by a previous paste (from synergy).

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoRemove stupid assignation in memcpy()
Roberto E. Vargas Caballero [Fri, 15 Apr 2016 05:58:26 +0000 (07:58 +0200)]
Remove stupid assignation in memcpy()

8 years agost: Fix off-by-one error when calculating character width.
Tor Andersson [Wed, 9 Mar 2016 16:11:57 +0000 (17:11 +0100)]
st: Fix off-by-one error when calculating character width.

LEN(str) is one larger than strlen(str) because it also counts the zero
terminator. The original code would include the .notdef glyph (since it'll
try to encode character 0, which gets encoded to the .notdef glyph) when
measuring the average dimensions of printable ascii characters.

This causes problems with fonts like GNU Unifont where the .notdef glyph is
not the same width as the usual half-width characters.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoFix vertical character alignment in some cases
Ton van den Heuvel [Mon, 7 Mar 2016 21:18:12 +0000 (22:18 +0100)]
Fix vertical character alignment in some cases

The y-position of a character found by asking fontconfig for a matching
font does not take the border pixels into account, resulting in a
slightly misaligned vertical position.

Signed-off-by: Ton van den Heuvel <tonvandenheuvel@gmail.com>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoI like empty lines.
Christoph Lohmann [Tue, 8 Mar 2016 12:55:22 +0000 (13:55 +0100)]
I like empty lines.

8 years agoMeasure the single advance width with a heuristic method
Ryusei Yamaguchi [Tue, 8 Mar 2016 03:26:04 +0000 (12:26 +0900)]
Measure the single advance width with a heuristic method

This fix is needed to use dual-width fonts, which have double-width
glyphs (e.g. CJK unified ideographs).

Signed-off-by: Ryusei Yamaguchi <mandel59@gmail.com>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoxtermclear() is now done by xdrawglyphfontspecs()
Christoph Lohmann [Mon, 7 Mar 2016 13:33:05 +0000 (14:33 +0100)]
xtermclear() is now done by xdrawglyphfontspecs()

Thanks Ton van den Heuvel for the proposal!

8 years agoarg.h: fixed argv checks order
Lucas Gabriel Vuotto [Fri, 19 Feb 2016 18:59:49 +0000 (15:59 -0300)]
arg.h: fixed argv checks order

This prevents accessing to a potentially out-of-bounds memory section.

Signed-off-by: Lucas Gabriel Vuotto <l.vuotto92@gmail.com>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoFix forgotten bracket and duplicate option in usage()
Quentin Rameau [Mon, 1 Feb 2016 11:20:33 +0000 (12:20 +0100)]
Fix forgotten bracket and duplicate option in usage()

Scratch the preceding patch, this one is more correct
(don't forget to 'git am --scissors' ;))
-- >8 --

Also reformat the strings in a saner layout

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoExtract ttyresize() out of cresize()
Quentin Rameau [Sat, 30 Jan 2016 16:54:41 +0000 (17:54 +0100)]
Extract ttyresize() out of cresize()

This way we can call cresize() to set the terminal size before creating
a tty or spawning a process, which will start with the correct size.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoOk, no need for a separate version function.
Christoph Lohmann [Sat, 30 Jan 2016 08:50:18 +0000 (09:50 +0100)]
Ok, no need for a separate version function.

This is just redundant metadata. Please add Java comment meta classes too.

8 years agoAdd -n option for setting WM_CLASS instance name
Quentin Rameau [Fri, 29 Jan 2016 21:03:01 +0000 (22:03 +0100)]
Add -n option for setting WM_CLASS instance name

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoReformat usage and separate version from it
Quentin Rameau [Fri, 29 Jan 2016 21:02:40 +0000 (22:02 +0100)]
Reformat usage and separate version from it

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoEnforce a terminal size to reduce race conditions in too efficient apps.
Christoph Lohmann [Thu, 28 Jan 2016 17:09:11 +0000 (18:09 +0100)]
Enforce a terminal size to reduce race conditions in too efficient apps.

dvtm is too fast in starting up. It will then have a race condition in finding
the right. terminal size.

8 years agoHeight is height.
Christoph Lohmann [Thu, 14 Jan 2016 22:19:03 +0000 (23:19 +0100)]
Height is height.

8 years agoBump year.
Christoph Lohmann [Fri, 1 Jan 2016 13:18:43 +0000 (14:18 +0100)]
Bump year.

8 years agoFixing the XClassHint setting in st.
Christoph Lohmann [Sun, 20 Dec 2015 00:43:32 +0000 (01:43 +0100)]
Fixing the XClassHint setting in st.

8 years agoAvoid recursive call to ttywrite from ttyread
Roberto E. Vargas Caballero [Sat, 21 Nov 2015 17:21:03 +0000 (18:21 +0100)]
Avoid recursive call to ttywrite from ttyread

Ttyread() calls to ttywrite, so if we check for reading before
that for writing in ttywrite we can get a circular call sequence.

8 years agoarg.h: remove unused macros
Quentin Rameau [Sun, 8 Nov 2015 16:14:58 +0000 (17:14 +0100)]
arg.h: remove unused macros

ARGUM isn't used and ARGNUMF uses estrtol() that isn't defined anywhere.
Those were probably copied from sbase arg.h.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoIntroduce lim in all ttywrite() checks.
Christoph Lohmann [Fri, 6 Nov 2015 19:46:23 +0000 (20:46 +0100)]
Introduce lim in all ttywrite() checks.

8 years agoFix ttywrite()
Roberto E. Vargas Caballero [Fri, 6 Nov 2015 19:01:00 +0000 (20:01 +0100)]
Fix ttywrite()

ttywrite was assuming that if it could not write then it could
read, but this is not necessarily true, there are some situations
where you cannot read or write. The correct behaviour is to detect
if you can read or/and write.

8 years agoNow the mshortcuts are even more consistent.
Ivan Tham [Sun, 1 Nov 2015 02:53:56 +0000 (10:53 +0800)]
Now the mshortcuts are even more consistent.

    Keep everyone happy

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoNow the Shortcuts are more consistent.
Christoph Lohmann [Sat, 31 Oct 2015 08:29:04 +0000 (09:29 +0100)]
Now the Shortcuts are more consistent.

Keep the debile happy.

8 years agofix bug where first selection snaps to lines
Jason Woofenden [Sun, 11 Oct 2015 09:44:34 +0000 (11:44 +0200)]
fix bug where first selection snaps to lines

8 years agoFix the cursor colors selection
Quentin Rameau [Tue, 6 Oct 2015 08:29:44 +0000 (10:29 +0200)]
Fix the cursor colors selection

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoNormalize the whole color selection in xdrawcursor.
Christoph Lohmann [Mon, 5 Oct 2015 22:21:44 +0000 (00:21 +0200)]
Normalize the whole color selection in xdrawcursor.

8 years agoFix the cursor color when over selection.
Quentin Rameau [Mon, 5 Oct 2015 21:10:48 +0000 (23:10 +0200)]
Fix the cursor color when over selection.

If we want to show a custom selected cursor color, we must not set the
revert attribute to the drawn glyph.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoMake the cursor shapes more descriptive.
Christoph Lohmann [Mon, 5 Oct 2015 21:05:38 +0000 (23:05 +0200)]
Make the cursor shapes more descriptive.

»IBeam« is now »Bar« because it's named like that in the source code.

8 years agoSnowman is everywhere.
Christoph Lohmann [Mon, 5 Oct 2015 20:59:04 +0000 (22:59 +0200)]
Snowman is everywhere.

8 years agoStyle normalisation in the config.def.h.
Christoph Lohmann [Mon, 5 Oct 2015 20:54:44 +0000 (22:54 +0200)]
Style normalisation in the config.def.h.

This adds an awareness commit for the big key array too.

8 years agoThe definition of the reverse cursor is now up to the user.
Christoph Lohmann [Mon, 5 Oct 2015 20:38:19 +0000 (22:38 +0200)]
The definition of the reverse cursor is now up to the user.

8 years agoFixing the cursor movement in selections.
Christoph Lohmann [Mon, 5 Oct 2015 20:09:51 +0000 (22:09 +0200)]
Fixing the cursor movement in selections.

Before the fix the cursor wouldn't obey if it's in a selection. If it is
inside it will now change to the reverse. This patch also adds that the
defaultcs will be reversed for the manually drawn cursors.

8 years agoWhen the cursor is moved, clear the selection.
Christoph Lohmann [Mon, 5 Oct 2015 19:18:34 +0000 (21:18 +0200)]
When the cursor is moved, clear the selection.

8 years agoReverse the cursor on selection.
Christoph Lohmann [Mon, 5 Oct 2015 19:06:42 +0000 (21:06 +0200)]
Reverse the cursor on selection.

8 years agoMore style changes. We forgot some switches.
Christoph Lohmann [Mon, 5 Oct 2015 18:48:24 +0000 (20:48 +0200)]
More style changes. We forgot some switches.

8 years agoSmall style change.
Christoph Lohmann [Mon, 5 Oct 2015 18:08:21 +0000 (20:08 +0200)]
Small style change.

8 years agoThere's no need for libXext to compile st.
Christoph Lohmann [Mon, 28 Sep 2015 18:08:58 +0000 (20:08 +0200)]
There's no need for libXext to compile st.

8 years agoFix extra bracketed paste markers when pasting >8kb
dequis [Fri, 25 Sep 2015 03:56:15 +0000 (00:56 -0300)]
Fix extra bracketed paste markers when pasting >8kb

Before this patch, when pasting over BUFSIZE (8192 bytes here), st would
do the following:

    \e[200~...8192 bytes...\e[201~\e[200~...remaining bytes...\e[201~

With this patch, the start marker is only sent when the offset is 0 (at
the beginning of selnotify) and the end marker is only sent when the
remaining bytes to read are 0 (at the end).

For short pastes, both conditions are true in the same iteration.

For long pastes, it removes the extra markers in the middle, keeping the
intended wrapping:

    \e[200~...8192 bytes......remaining bytes...\e[201~

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agodup() -> dup2()
FRIGN [Tue, 22 Sep 2015 11:13:25 +0000 (13:13 +0200)]
dup() -> dup2()

gcc would warn about an unused result. We know it is 0 and dup()
can't fail in these circumstances, as we closed fd0 previously.
Using dup2() to do the same saves one line and shuts gcc up, bringing
us a clean build back.

8 years agoThe times of bad fonts are over.
Christoph Lohmann [Sat, 12 Sep 2015 14:43:32 +0000 (16:43 +0200)]
The times of bad fonts are over.

The antialiasing was false due to circumstances that do not exist anymore. We
need antialiasing on big screens with big fonts. Autohinting too.

8 years agoFix copy of line with len = 0
Roberto E. Vargas Caballero [Thu, 10 Sep 2015 09:53:11 +0000 (11:53 +0200)]
Fix copy of line with len = 0

When a line has no any character linelen is 0, so last = &term.line[y][MIN(lastx, linelen-1)]
generated a pointer to the end of the previous line. The best thing we can do in this case
is to add a newline, because we don't have a glyph to print (and consult its state of
wrapping).

8 years agoChange Pause to Break in shortcut for serial break
Roberto E. Vargas Caballero [Tue, 8 Sep 2015 15:00:20 +0000 (17:00 +0200)]
Change Pause to Break in shortcut for serial break

8 years agoExpose cursor shape in config.def.h
Jan Christoph Ebersbach [Tue, 8 Sep 2015 05:28:52 +0000 (07:28 +0200)]
Expose cursor shape in config.def.h

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoAdd key to send a break to the serial line
Roberto E. Vargas Caballero [Tue, 8 Sep 2015 10:10:11 +0000 (12:10 +0200)]
Add key to send a break to the serial line

8 years agoSet default values of stty according to the man page
Roberto E. Vargas Caballero [Tue, 8 Sep 2015 08:44:35 +0000 (10:44 +0200)]
Set default values of stty according to the man page

This configuration is basically 38400 8N1, without echo and
in raw mode. Kernel will not process any of the characters
sent by the user.

8 years agoMaking st.1 more descriptive about -l and fix -l in st.c.
Christoph Lohmann [Mon, 7 Sep 2015 20:59:05 +0000 (22:59 +0200)]
Making st.1 more descriptive about -l and fix -l in st.c.

8 years agoFix the st manpage for -l line.
Christoph Lohmann [Mon, 7 Sep 2015 18:00:49 +0000 (20:00 +0200)]
Fix the st manpage for -l line.

8 years agoReordering and adding control codes.
Christoph Lohmann [Mon, 31 Aug 2015 13:26:21 +0000 (15:26 +0200)]
Reordering and adding control codes.

For completeness and documentation add all C1 control codes.

8 years agoMerge branch 'master' of ssh://suckless.org/gitrepos/st
Christoph Lohmann [Sun, 30 Aug 2015 09:29:23 +0000 (11:29 +0200)]
Merge branch 'master' of ssh://suckless.org/gitrepos/st

8 years agoDon't read if we chunked the input data.
Christoph Lohmann [Sun, 30 Aug 2015 09:28:35 +0000 (11:28 +0200)]
Don't read if we chunked the input data.

8 years agoDo not mark as invalid UTF8 control codes
Roberto E. Vargas Caballero [Mon, 17 Aug 2015 09:25:38 +0000 (11:25 +0200)]
Do not mark as invalid UTF8 control codes

wcwidth() returns -1 for all the non visible characters, but it doesn't
necessarilly mean that they are incorrect. It only means that they are not
printable.

8 years agost.info: replace the acsc entry from xterm to urxvt
Quentin Rameau [Tue, 11 Aug 2015 15:47:12 +0000 (17:47 +0200)]
st.info: replace the acsc entry from xterm to urxvt

The current acsc entry, copied from xterm was not exposing capability to
display arrows.

8 years agoAdding mouse colour/shape settings
Alex Kozadaev [Tue, 28 Jul 2015 09:30:14 +0000 (10:30 +0100)]
Adding mouse colour/shape settings

8 years agoAdding -T to the usage too.
Christoph Lohmann [Fri, 24 Jul 2015 16:25:33 +0000 (18:25 +0200)]
Adding -T to the usage too.

8 years agoAdd -T, as recommended by Dmitrij D. Czarkoff
Christoph Lohmann [Fri, 24 Jul 2015 16:24:10 +0000 (18:24 +0200)]
Add -T, as recommended by Dmitrij D. Czarkoff

8 years agoFix type for write(2) return variable.
Quentin Rameau [Fri, 24 Jul 2015 09:52:17 +0000 (11:52 +0200)]
Fix type for write(2) return variable.

A little fix in xwrite().

>From 3727d2e3344b57128ab51c7839795204f1f839ff Mon Sep 17 00:00:00 2001
From: Quentin Rameau <quinq@fifth.space>
Date: Fri, 24 Jul 2015 11:40:46 +0200
Subject: [PATCH] Fix type for write(2) return variable.

The allocated lengh of s fits into an integer so we can safely use
ssize_t here.

8 years agoadded note about the low precedence of shell to config.def.h
Mytchel Hammond [Fri, 24 Jul 2015 05:58:18 +0000 (17:58 +1200)]
added note about the low precedence of shell to config.def.h

8 years agoFix style in execsh
Roberto E. Vargas Caballero [Fri, 24 Jul 2015 05:44:34 +0000 (07:44 +0200)]
Fix style in execsh

8 years agoMake the comment for the IM XFilter more understandable.
Christoph Lohmann [Fri, 10 Jul 2015 12:31:40 +0000 (14:31 +0200)]
Make the comment for the IM XFilter more understandable.

8 years agoReturn style unification.
Christoph Lohmann [Fri, 10 Jul 2015 12:30:37 +0000 (14:30 +0200)]
Return style unification.

8 years agoAligning the macros.
Christoph Lohmann [Fri, 10 Jul 2015 12:21:52 +0000 (14:21 +0200)]
Aligning the macros.

8 years agoUnix end of file.
Christoph Lohmann [Fri, 10 Jul 2015 12:19:52 +0000 (14:19 +0200)]
Unix end of file.

8 years agoNo inline declarations please.
Christoph Lohmann [Fri, 10 Jul 2015 12:19:31 +0000 (14:19 +0200)]
No inline declarations please.

8 years agoTypo and the missing incr atom from the patches.
Christoph Lohmann [Fri, 10 Jul 2015 12:17:51 +0000 (14:17 +0200)]
Typo and the missing incr atom from the patches.

8 years agoImplement chunked write to the cmdfd.
Christoph Lohmann [Fri, 10 Jul 2015 12:15:39 +0000 (14:15 +0200)]
Implement chunked write to the cmdfd.

This is needed so big input like a paste of several megabyte does not clog our
I/O.

8 years agoImplement INCR transfers in the clipboard.
Christoph Lohmann [Fri, 10 Jul 2015 12:10:17 +0000 (14:10 +0200)]
Implement INCR transfers in the clipboard.