gnotclub / xst Goto Github PK
View Code? Open in Web Editor NEWst fork that uses Xresources and some pretty good patches
License: MIT License
st fork that uses Xresources and some pretty good patches
License: MIT License
Rendering the character U+26E9 (Shinto Shrine Emoji) causes st to crash, resulting in the message:
X Error of failed request: BadLength (poly request too large or internal Xlib length error)
Major opcode of failed request: 139 (RENDER)
Minor opcode of failed request: 20 (RenderAddGlyphs)
Serial number of failed request: 4216
Current serial number in output stream: 4241
Oddly, neither U+26E8 nor U+26EA cause a crash.
I discovered this when attempting to open an email with mutt which contained the emoji.
I've opened this issue here because my fork is based on xst, but I confirmed this to apply to suckless st (as of 21367a0) as well, so I've reported the issue to the [email protected]
mailing list.
$ uname -srvo
Linux 5.0.5-arch1-1-ARCH #1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019 GNU/Linux
$ wmname
xmonad
Any chance of adding an icon with the _NET_WM_ICON hint?
Consider it a low priority feature request to make alt-tabbing less ugly π
Hi,
First of all, this is an extremely nice project. Thanks.
Can we have the alpha patch too ?
Hi, is it possible to somehow expose a way in .Xresources
to set separate fonts for italic, (perhaps italic bold and bold too)?
Thanks
EDIT: found a patch for st which could have useful elements for this change: https://github.com/ericpruitt/edge/blob/master/patches/st-00-font-array-support.diff
This implements a fonts array support e.g. for chars not present in current .Xresources font.
Maybe this can help, cheers
Any idea of apply hidecursor patch from st?
I don't like bold font, so with URxvt I solved it with URxvt.boldFont:xos4terminus:size=12
. But xst doesn't care that I use a non-bold font setting (st.boldFont:xos4terminus:size=12
) and uses bold fonts anyway.
I know I can set static int bold_font
to 0
to disable bold fonts, but that also disables the colors for the bold fonts. Things like emerge uses bold fonts, which results in emerge showing pretty much everything in orange.
Anyway around this? :)
Is it possible to configure line spacing? I have a few fonts that I would love to use, however they are rendered with excess line spacing. I have the same issue with URxvt (that I'd like to switch off from) They offer this feature, but without negative values.
I'd like to have xst
in Void Linux Repos, but it's only possible for projects that have a release.
Do you mind making a release?
In the modern world, the support for some languages that are right-to-left and mixing them with left-to-write words and numbers is crucial for a different software. At some point, this should be supported everywhere, including the console.
I started to gather the information about BiDi support in various console terminals (and programs) in analogy with true color crusade at https://gist.github.com/XVilka/a0e49e1c65370ba11c17
I'm not sure what the issue is here. This is the output of any pacman related command with xst-git from AUR installed.
error: file owned by 'ncurses' and 'xst-git': 'usr/share/terminfo/s/st'
error: file owned by 'ncurses' and 'xst-git': 'usr/share/terminfo/s/st-256color'
Can you include the delkey patch ?
I reload them with killall -s USR1 st
.
Almost every time I reload them one of them freezes and has to be killed with kill
because it doesn't respond to X events.
I think this behavior that xst can achieve, keep cursor's shape and only change to |
when over text to prapare to select.
when trying to paste text I get this error: bracketed-paste-magic:zle:47: not enough arguments for -U
I am using zsh on Debian Sid if that helps
Hi all
I would like you to use xst
in Fedora 29. The linked copr repo only contains builds up to Fedora 28. Could you create a build for Fedora 29?
Thanks and keep up the good work!
per @eti0: would be a urxvt --iconic
equivalent
When i change the colors and reload, st use a different colors
my config file
#include ".xcolors/xcolors"
! ST SETTINGS {{{
! These are all possible options, presented with default values.
! xst will fallback to *.option if st.option is not present.
! see src/config.h for more information about option meanings.
! These options only take effect on startup.
st.termname: st-256color
! if you do not set shell, precedence is: -e arg, utmp option, SHELL env var, /etc/passwd shell
st.shell: /bin/sh
! The following options options can be reloaded via USR1 signal.
st.font: Terminus:size=10:antialias=true:autohint=true;
st.borderpx: 10
! Available cursor values: 2 4 6 7 = β _ | β ( 1 3 5 are blinking versions)
st.cursorshape: 2
! thickness of underline and bar cursors
st.cursorthickness: 2
! 0: normal blinking, 1: leave cursor border and blink with cursors background
st.cursorblinkstyle: 1
! 0: cursor blinks with a constant interval; 1: blinking cycle resets on key input
st.cursorblinkontype: 1
st.bold_font: 0
st.xfps: 120
st.actionfps: 30
! Amount of lines scrolled
st.mouseScrollLines: 1
! Kerning / character bounding-box height multiplier
st.chscale: 1.0
! Kerning / character bounding-box width multiplier
st.cwscale: 1.0
! blinking timeout for terminal and cursor blinking (0 disables)
st.blinktimeout: 800
! bell volume. Value between -100 and 100. (0 disables)
st.bellvolume: 100
! this is a char that is exposed like so: `printf '\033[z'`
st.prompt_char: $
! This option is can be preedit style. Available values: `root` `overthespot` (Default taken `root`)
st.imstyle: root
! opacity==255 means what terminal will be not transparent, 0 - fully transparent
st.opacity: 255
! }}}
xcolor file
! special
*.foreground: #7fc3d3
*.background: #263137
*.cursorColor: #7fc3d3
! black
*.color0: #545454
*.color8: #545454
! red
*.color1: #455964
*.color9: #455964
! green
*.color2: #424b6c
*.color10: #424b6c
! yellow
*.color3: #747474
*.color11: #747474
! blue
*.color4: #1ca5c5
*.color12: #1ca5c5
! magenta
*.color5: #6c4262
*.color13: #6c4262
! cyan
*.color6: #8abeb7
*.color14: #8abeb7
! white
*.color7: #707880
*.color15: #c5c8c6
how set padding pixel size?
Itβd be nice to have ligature support for fonts like Fira Code.
I have this set in both st
and xst
static int borderpx = 0;
st
works - I have tmux session and the left status in bottom of screen
xst
doesn't work - tmux session's status is a little above my screen, I can move cursor under the tmux's left status.
i Compile xst on my Ubuntu 18.04 and i love it
but i want to ask one question
is there any way to change the cols and rows on xst from Xresources file with out recompiling it ???
With URxvt you can configure your font:
URxvt.font: font1,font2
And font2
glyphs will be used as fallback if font1
doesn't provide them. This is useful for displaying icon fonts like https://github.com/stark/siji
It would be nice if xst could do this.
Hi,
Would you consider calling the binary xst in order to have both xst and st ?
Thanks
Hey,
thanks for the great work!
Would you mind adding the clipdoard patch too?
https://st.suckless.org/patches/clipboard/
Coping from the browser e.g. is quite hard without it and I suppose I would not break any other funcionality. If you like I can submit a PR.
Cheers,
Pablo
There is a patch floating around of questionable quality:
https://gist.github.com/saitoha/70e0fdf22e3e8f63ce937c7f7da71809
I'm tempted to try and implement/port it to xst.
Thoughts?
It'd be handy for a couple things.
This is a question from a rookie. Any help is appreciated.
First I installed xst
using xbps-install
, realizing I could only recompile it with build from source. Then I "make install
"-ed with git clone
. The latter seems to have the delkey
and some other patch. The backspace and arrow keys behave differently which was not a surprise as stated in the FAQ. I found that in the "xbps-install" the keys behave the same as in an unpatched st
. yet the config.h file from github and void repo seems to be the same. What could be the reason of such difference?
(I still incline to build from source but want to figure out how to remove the patch and let the keys behave as unpatched st
)
Thank you.
So I didn't know how to use the clipboard patch so i looked inside of the diff and found that to copy out of the terminal you use ctrl+t.
But can I past or not because it is the only reason I sometimes have to use urxvt.
Thanks :)
xst
does everything I want it too, except that I can't click links to open them in my browser (from what I can find). Could this be implemented?
So I have run ./st
after running make
and it opens up and works but when I interact with the terminal I get endless lines of this:
erresc(default): gfx attr 10 unknown
ESC[0;10m
*This is from the terminal I ran ./st
in?
Hi,
Thanks @actionless for the alpha patch.
Could you expose a command-line option for xst, so that we can change the opacity during the launch of st ?
The problem is that the alpha patch breaks image previews in ranger. I only need transparency in the drop down terminal.
Hi, xst and st by default uses the font to print lines/blocks/braille characters, but some fonts seems weird.
This patch uses a custom rendering for a flaw, nice boxes.
Can this patch be merged into the xst?
hello
I tried to add the delkey patch and it did not work
Hi, I am trying to change the shape of the cursor based on the mode in vim.
The wiki suggests to add this to my vimrc:
let &t_SI = "\<Esc>[6 q"
let &t_SR = "\<Esc>[4 q"
let &t_EI = "\<Esc>[2 q"
http://vim.wikia.com/wiki/Change_cursor_shape_in_different_modes
It specifically mentions st, so I tried it, but it doesn't work. Any idea why?
Would it be possible to add an option to Xresources for which color the cursor points to?
I'm able to make install just fine, but when i run st, I get a buffer overflow detected. I do not get this error when running st from suckless.org.
How do you display CJK characters while using a set font, like Liberation Mono, for alphabetic characters? I've tried a few things, but I haven't been successful.
EDIT: Found some font TTF font conflicts that refuses to display certain CJK fonts that doesn't happen with other terminals.
I raised a question in here https://unix.stackexchange.com/questions/472800/st-terminal-shrink-of-bottom-bar-because-of-font-with-small-size
Look at st's patches, I think this might be the right patch to fix this issue, unfortunately it failed even with original st-0.8.1. Probably won't work on xst.
Does xst come with idea of fix this issue?
Sorry if this turns out to be a newbie mistake on my end but..
Compiled using make and sudo make install.
Everytime I load it up it crashes with the above error. My googlefu failed to reveal anything that would help me.
Thanks in advance.
uname -r output
4.4.0-59-generic, Lubuntu ( my normal distro is Arch; this is only temporary )
Text with the reverse attribute shows text in white background and foreground, therefore hides the text. This includes the block cursor.
xst screenshot:
urxvt screenshot:
My xst specific Xresources:
st.termname: xst-256color
st.font: Hack:pixelsize=14:antialias=true:autohint=true
st.borderpx: 6
st.opacity: 0
st.bold_font: 0
st.cwscale: 1.1
st.chscale: 0.9
! vim: set ft=xdefaults:
Output of xrdb -query
:
*background: #151515
*color0: #151515
*color1: #ac4142
*color10: #90a959
*color11: #f4bf75
*color12: #6a9fb5
*color13: #aa759f
*color14: #75b5aa
*color15: #f5f5f5
*color16: #d28445
*color17: #8f5536
*color18: #202020
*color19: #303030
*color2: #90a959
*color20: #b0b0b0
*color21: #e0e0e0
*color3: #f4bf75
*color4: #6a9fb5
*color5: #aa759f
*color6: #75b5aa
*color7: #d0d0d0
*color8: #505050
*color9: #ac4142
*cursorColor: #d0d0d0
*foreground: #d0d0d0
URxvt*font: xft:Hack:pixelsize=14
URxvt*geometry: 120x32
URxvt*internalBorder: 6
URxvt*scrollBar: false
URxvt*shading: 20
URxvt*transparent: true
URxvt.keysym.Control-Left: \033[1;5D
URxvt.keysym.Control-Right: \033[1;5C
URxvt.matcher.button: 2
URxvt.perl-ext-common: default,matcher,resize-font
URxvt.url-launcher: /usr/bin/xdg-open
Xft.rgba: rgb
st.bold_font: 0
st.borderpx: 6
st.chscale: 0.9
st.cwscale: 1.1
st.font: Hack:pixelsize=14:antialias=true:autohint=true
st.opacity: 0
st.termname: xst-256color
I using xst and same font with urxvt, I don't know issue xst about:
https://i.imgur.com/ewNvFvJ.jpg
The left is xst and middle is urxvt.
Xresources config:
! These options only take effect on startup.
st.termname: st-256color
! The following options options can be reloaded via USR1 signal.
st.font: Roboto Mono for Powerline:pixelsize=9:antialias=true:autohint=true
Ubuntu Mono derivative Powerline for Powerline:pixelsize=9:antialias=true:autohint=true
Typicons:pixelsize=9:antialias=true:autohint=true:style=Book;st.borderpx: 22
! Available cursor values: 2 4 6 7 = β _ | β ( 1 3 5 are blinking versions)
st.cursorshape: 4
st.cursorthickness: 2
st.cursorblinkstyle: 0
st.cursorblinkontype: 1
st.bold_font: 0
st.xfps: 120
st.actionfps: 30
st.chscale: 1.0
st.cwscale: 1.0
st.blinktimeout: 800
st.bellvolume: 100
The same system, this command work: urxvtc -name ArbitraryWindows -geometry 160x50
output: windows is resized.
But with xst, it won't work: xst -class=ArbitraryWindows -geometry=100x50
no output, the result is that xst doesn't respect -geometry option that resize xst' window to something 100x50.
How to fix it?
Hey! First at all i really enjoy using this terminal. Thanks for keeping it alive.
But recently i have encountered some trouble with it. E.g. when i try to search some music in mpsyt or open my mailbox in neomutt, the terminal will crash. The programs run fine until that point. Maybe it has some problems with rendering big lists or something. I already reinstalled the terminal, but this didn't prevent ther terminal from crashing ;(
Here are some information about my system:
OS: Manjaro Linux 4.19.12-2
terminal version (installed from AUR): xst-git 20181014.5d2206e-1
email client (installed from AUR): NeoMutt 20180716
mpsyt 0.2.8
If you need more information, just asked. I don't know what to do about it, except asking here for help.
Currently printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"
(true color test) fails, I was under the understanding st
is true color by default?
Cheers.
Even tmux
would solve my use case workflow but still I'd like to use multiple terminal instead of multiple panes for some reasons, that an xst
would always on top of others?
Would that possible?
I have a script that sets the font size (using kill -USR1 and xrdb to live reload the changes made to .Xresources).
I want that when I hit shift + mousewheel-up, this script gets executed.
Is there a way to achieve that in xst?
thanks for the project @neeasade!
Parts of or entire characters are cut off on the left and right side of the window.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.