Compare commits

...

10 Commits

Author SHA1 Message Date
Fabian
f1402b93cd Update patches/st-w3m-0.8.3.diff 2025-01-05 00:56:06 +00:00
fqbn207
7ba2dc839c kekl 2024-12-17 01:25:46 +01:00
memL0rz
b00c7a5c28 kekl 2024-12-05 14:21:54 +00:00
memL0rz
35b0f648ca w3m 2024-12-04 00:25:02 +01:00
memL0rz
22f90d725f gruvbox 2024-11-27 23:38:52 +01:00
meml0rz
0272ab5f64 freebsd 2024-11-25 03:38:53 +01:00
meml0rz
0fbfec6d4e kekl 2024-11-18 01:14:57 +01:00
meml0rz
3cf4992adb some commit 2024-11-04 17:14:42 +01:00
meml0rz
98b6b89b17 changed theme to dark 2024-11-01 02:17:04 +01:00
memL0rz
de25c4276f Update st.c 2024-10-20 12:12:44 +00:00
6 changed files with 2166 additions and 31 deletions

View File

@ -1,4 +1,4 @@
static char *font = "FantasqueSansMono:pixelsize=18:antialias=true:autohint=true"; static char *font = "Terminus:pixelsize=18:antialias=true:autohint=true";
static int borderpx = 2; static int borderpx = 2;
static char *shell = "/usr/local/bin/bash"; static char *shell = "/usr/local/bin/bash";
@ -20,34 +20,39 @@ static unsigned int blinktimeout = 800;
static unsigned int cursorthickness = 2; static unsigned int cursorthickness = 2;
static int bellvolume = 0; static int bellvolume = 0;
char *termname = "xterm"; char *termname = "xterm";
unsigned int tabspaces = 8; unsigned int tabspaces = 2;
static const char *colorname[] = {
[0] = "#101010", /* hard contrast: #1d2021 / soft contrast: #32302f */
[1] = "#cc241d", /* red */
[2] = "#98971a", /* green */
[3] = "#d79921", /* yellow */
[4] = "#458588", /* blue */
[5] = "#b16286", /* magenta */
[6] = "#689d6a", /* cyan */
[7] = "#a89984", /* white */
/* 8 bright colors */
[8] = "#928374", /* black */
[9] = "#fb4934", /* red */
[10] = "#b8bb26", /* green */
[11] = "#fabd2f", /* yellow */
[12] = "#83a598", /* blue */
[13] = "#d3869b", /* magenta */
[14] = "#8ec07c", /* cyan */
[15] = "#ebdbb2", /* white */
static const char *colorname[] = {
/* Normal colors */
[0] = "#262626", /* black */
[1] = "#ee5396", /* red */
[2] = "#42be65", /* green */
[3] = "#ffe97b", /* yellow */
[4] = "#33b1ff", /* blue */
[5] = "#ff7eb6", /* magenta */
[6] = "#3ddbd9", /* cyan */
[7] = "#dde1e6", /* white */
/* Bright colors */
[8] = "#393939", /* black */
[9] = "#ee5396", /* red */
[10] = "#42be65", /* green */
[11] = "#ffe97b", /* yellow */
[12] = "#33b1ff", /* blue */
[13] = "#ff7eb6", /* magenta */
[14] = "#3ddbd9", /* cyan */
[15] = "#ffffff", /* white */
/* Background and Foreground */
[256] = "#161616", /* background */
[257] = "#ffffff", /* foreground */
}; };
/* /*
* Default colors (colorname index) * Default colors (colorname index)
* foreground, background, cursor, reverse cursor * foreground, background, cursor, reverse cursor
*/ */
unsigned int defaultfg = 15; unsigned int defaultfg = 257;
unsigned int defaultbg = 0; unsigned int defaultbg = 256;
unsigned int defaultcs = 15; unsigned int defaultcs = 15;
static unsigned int defaultrcs = 257; static unsigned int defaultrcs = 257;
@ -58,7 +63,7 @@ static unsigned int defaultrcs = 257;
* 6: Bar ("|") * 6: Bar ("|")
* 7: Snowman ("") * 7: Snowman ("")
*/ */
static unsigned int cursorshape = 4; static unsigned int cursorshape = 2;
static unsigned int cols = 80; static unsigned int cols = 80;
static unsigned int rows = 24; static unsigned int rows = 24;
static unsigned int mouseshape = XC_xterm; static unsigned int mouseshape = XC_xterm;

View File

@ -4,7 +4,7 @@ VERSION = 0.9.2
# Customize below to fit your system # Customize below to fit your system
# paths # paths
PREFIX = /usr/local PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man
X11INC = ${PREFIX}/include X11INC = ${PREFIX}/include
@ -26,11 +26,11 @@ STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
STLDFLAGS = $(LIBS) $(LDFLAGS) STLDFLAGS = $(LIBS) $(LDFLAGS)
# OpenBSD: # OpenBSD:
#CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
#LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \ LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \
# `$(PKG_CONFIG) --libs fontconfig` \ `$(PKG_CONFIG) --libs fontconfig` \
# `$(PKG_CONFIG) --libs freetype2` `$(PKG_CONFIG) --libs freetype2`
#MANPREFIX = ${PREFIX}/man MANPREFIX = ${PREFIX}/man
# compiler and linker # compiler and linker
# CC = c99 # CC = c99

23
patches/st-w3m-0.8.3.diff Normal file
View File

@ -0,0 +1,23 @@
---
x.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/x.c b/x.c
index e5f1737..b6ae162 100644
--- a/x.c
+++ b/x.c
@@ -1594,6 +1594,8 @@ xsettitle(char *p)
int
xstartdraw(void)
{
+ if (IS_SET(MODE_VISIBLE))
+ XCopyArea(xw.dpy, xw.win, xw.buf, dc.gc, 0, 0, win.w, win.h, 0, 0);
return IS_SET(MODE_VISIBLE);
}
base-commit: 43a395ae91f7d67ce694e65edeaa7bbc720dd027
--
2.17.1

2
st.c
View File

@ -180,7 +180,7 @@ static void tinsertblank(int);
static void tinsertblankline(int); static void tinsertblankline(int);
static int tlinelen(int); static int tlinelen(int);
static void tmoveto(int, int); static void tmoveto(int, int);
tatic void tmoveato(int, int); static void tmoveato(int, int);
static void tnewline(int); static void tnewline(int);
static void tputtab(int); static void tputtab(int);
static void tputc(Rune); static void tputc(Rune);

2
x.c
View File

@ -1648,6 +1648,8 @@ xsettitle(char *p)
int int
xstartdraw(void) xstartdraw(void)
{ {
if (IS_SET(MODE_VISIBLE))
XCopyArea(xw.dpy, xw.win, xw.buf, dc.gc, 0, 0, win.w, win.h, 0, 0);
return IS_SET(MODE_VISIBLE); return IS_SET(MODE_VISIBLE);
} }

2105
x.c.orig Executable file

File diff suppressed because it is too large Load Diff