mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
b71d9f6669
This patch must be applied on the externalpipe patch. It adds the function externalpipein to redirect the standard output of the external command to the slave size of the pty, that is, as if the external program had been manually executed on the terminal. It can be used to send desired escape sequences to the terminal with a shortcut. I created the patch to make use of the dynamic-colors program (https://github.com/sos4nt/dynamic-colors) that uses the OSC escape sequences to change the colors of the terminal. The program keeps the last colorscheme selected in a file, so you can use it to select the colorscheme for all newly opened terminals from that moment on. If you want to change the color of the background and foreground independently from the palette, you have to merge in the patch for the OSC escape sequences 10, 11, and 12. This patch includes the changes of the externalpipe sigaction patch to prevent reseting the signal handler for SIGCHLD when the proces of the external command exits.
4 lines
121 B
C
4 lines
121 B
C
void externalpipe(const Arg *);
|
|
#if EXTERNALPIPEIN_PATCH
|
|
void externalpipein(const Arg *);
|
|
#endif // EXTERNALPIPEIN_PATCH
|