Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
Only things missing (imho) are history search and storing.
Should run stable, please open issues for any crashes.

The statically linked binary (slterm_linux_amd64) in "releases" should work for every
64bit linux with a running xorg xserver, and (surprisingly) doesn't need more
memory than the shared executable.
The statically linked binary (slterm) in "releases" should work for every
64bit linux with a running xorg xserver.

Ram usage with an empty history buffer is about (virtual) 6MB + (resident) 4MB.

Expand Down
4 changes: 3 additions & 1 deletion config.make
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ EMBEDFONT := 0
# utf8-support (currently abandoned. Will not work )
#UTF8 := 0

# Length of history, in bits, -> log(size in lines) ~ bits */
# Maximum count of history lines in bits
# 8 equals 1<<8 = 256 lines, 9 = 512, 10 = 1024, ..
# memory usage is line count * 4 Bytes per Glyph * linelen,
# e.g. 1<<16 * 4 * 120 = 30MB
HISTSIZEBITS := 16
#HISTSIZEBITS = 7

Expand Down
6 changes: 4 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ void fontusage(){
fprintf(stderr,
" slterm [-f fontname] [-fb boldname] [-fi italicname] [-fI bolditalicname]\n"
" [-fw fontwidth] [-fh fontheight] [other options]\n"
"\n The fontname format is specified in the fontconfig documentation,\n"
"\n"
" The fontname format is specified in the fontconfig documentation,\n"
" http://freedesktop.org/software/fontconfig/fontconfig-user.html\n"
" A list of attributes is in doc/fontconfig.txt\n"
" Supply 0 to disable bold, italic or bolditalic fonts,\n"
Expand All @@ -106,7 +107,8 @@ void usage(void) {
fontusage();

fprintf(stderr," Original author Aurelien Aptel. 20xx-2019 st, suckless.\n"
" 2020-2026, slterm, misc147 codeberg.org/misc1, MIT license\n\n");
"\n"
" 2020-2026, slterm, misc147 www.codeberg.org/misc1, MIT license\n\n");

exit(0);
}
Expand Down
9 changes: 5 additions & 4 deletions src/slterm.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ OPTIONS

-H Display this manpage as text

-I Dump terminfo file

-L show license

-a
Expand Down Expand Up @@ -343,10 +345,9 @@ OPTIONS
prints version and compile information, then exits

-e command [ arguments ... ]
slterm executes command instead of the shell. If this is used it must
be the last option on the command line, as in xterm / rxvt. This
option is only intended for compatibility, and all the remaining
arguments are used as a command even without it.
slterm executes command instead of the default shell.
If this is used it must be the last option on the command line,
as in xterm / rxvt. All remaining arguments are supplied to 'command'.

-x
enable reading of the XResources database for the configuration
Expand Down
Loading