st.1 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. .TH ST 1 st\-VERSION
  2. .SH NAME
  3. st \- simple terminal (Luke Smith (https://lukesmith.xyz)'s build)
  4. .SH SYNOPSIS
  5. .B st
  6. .RB [ \-aiv ]
  7. .RB [ \-c
  8. .IR class ]
  9. .RB [ \-f
  10. .IR font ]
  11. .RB [ \-g
  12. .IR geometry ]
  13. .RB [ \-n
  14. .IR name ]
  15. .RB [ \-o
  16. .IR iofile ]
  17. .RB [ \-T
  18. .IR title ]
  19. .RB [ \-t
  20. .IR title ]
  21. .RB [ \-l
  22. .IR line ]
  23. .RB [ \-w
  24. .IR windowid ]
  25. .RB [[ \-e ]
  26. .IR command
  27. .RI [ arguments ...]]
  28. .PP
  29. .B st
  30. .RB [ \-aiv ]
  31. .RB [ \-c
  32. .IR class ]
  33. .RB [ \-f
  34. .IR font ]
  35. .RB [ \-g
  36. .IR geometry ]
  37. .RB [ \-n
  38. .IR name ]
  39. .RB [ \-o
  40. .IR iofile ]
  41. .RB [ \-T
  42. .IR title ]
  43. .RB [ \-t
  44. .IR title ]
  45. .RB [ \-w
  46. .IR windowid ]
  47. .RB \-l
  48. .IR line
  49. .RI [ stty_args ...]
  50. .SH DESCRIPTION
  51. .B st
  52. is a simple terminal emulator.
  53. .SH OPTIONS
  54. .TP
  55. .B \-a
  56. disable alternate screens in terminal
  57. .TP
  58. .BI \-c " class"
  59. defines the window class (default $TERM).
  60. .TP
  61. .BI \-f " font"
  62. defines the
  63. .I font
  64. to use when st is run.
  65. .TP
  66. .BI \-g " geometry"
  67. defines the X11 geometry string.
  68. The form is [=][<cols>{xX}<rows>][{+-}<xoffset>{+-}<yoffset>]. See
  69. .BR XParseGeometry (3)
  70. for further details.
  71. .TP
  72. .B \-i
  73. will fixate the position given with the -g option.
  74. .TP
  75. .BI \-n " name"
  76. defines the window instance name (default $TERM).
  77. .TP
  78. .BI \-o " iofile"
  79. writes all the I/O to
  80. .I iofile.
  81. This feature is useful when recording st sessions. A value of "-" means
  82. standard output.
  83. .TP
  84. .BI \-T " title"
  85. defines the window title (default 'st').
  86. .TP
  87. .BI \-t " title"
  88. defines the window title (default 'st').
  89. .TP
  90. .BI \-w " windowid"
  91. embeds st within the window identified by
  92. .I windowid
  93. .TP
  94. .BI \-l " line"
  95. use a tty
  96. .I line
  97. instead of a pseudo terminal.
  98. .I line
  99. should be a (pseudo-)serial device (e.g. /dev/ttyS0 on Linux for serial port
  100. 0).
  101. When this flag is given
  102. remaining arguments are used as flags for
  103. .BR stty(1).
  104. By default st initializes the serial line to 8 bits, no parity, 1 stop bit
  105. and a 38400 baud rate. The speed is set by appending it as last argument
  106. (e.g. 'st -l /dev/ttyS0 115200'). Arguments before the last one are
  107. .BR stty(1)
  108. flags. If you want to set odd parity on 115200 baud use for example 'st -l
  109. /dev/ttyS0 parenb parodd 115200'. Set the number of bits by using for
  110. example 'st -l /dev/ttyS0 cs7 115200'. See
  111. .BR stty(1)
  112. for more arguments and cases.
  113. .TP
  114. .B \-v
  115. prints version information to stderr, then exits.
  116. .TP
  117. .BI \-e " command " [ " arguments " "... ]"
  118. st executes
  119. .I command
  120. instead of the shell. If this is used it
  121. .B must be the last option
  122. on the command line, as in xterm / rxvt.
  123. This option is only intended for compatibility,
  124. and all the remaining arguments are used as a command
  125. even without it.
  126. .SH SHORTCUTS
  127. .TP
  128. .B Alt-j/k or Alt-Up/Down or Alt-Mouse Wheel
  129. Scroll up/down one line at a time.
  130. .TP
  131. .B Alt-u/d or Alt-Page Up/Page Down
  132. Scroll up/down one screen at a time.
  133. .TP
  134. .B Alt-Shift-k/j or Alt-Shift-Page Up/Page Down or Alt-Shift-Mouse Wheel
  135. Increase or decrease font size.
  136. .TP
  137. .B Alt-Home
  138. Reset to default font size.
  139. .TP
  140. .B Shift-Insert or Alt-v
  141. Paste from clipboard.
  142. .TP
  143. .B Alt-c
  144. Copy to clipboard.
  145. .TP
  146. .B Alt-p
  147. Paste/input primary selection.
  148. .TP
  149. .B Alt-l
  150. Show dmenu menu of all URLs on screen and choose one to open.
  151. .TP
  152. .B Alt-y
  153. Show dmenu menu of all URLs on screen and choose one to copy.
  154. .TP
  155. .B Alt-o
  156. Show dmenu menu of all recently run commands and copy the output of the chosen command to the clipboard.
  157. .I xclip
  158. required.
  159. .TP
  160. .B Alt-a/s
  161. Increase or decrease opacity/alpha value (make window more or less transparent).
  162. .TP
  163. .B Break
  164. Send a break in the serial line.
  165. Break key is obtained in PC keyboards
  166. pressing at the same time control and pause.
  167. .TP
  168. .B Ctrl-Print Screen
  169. Toggle if st should print to the
  170. .I iofile.
  171. .TP
  172. .B Shift-Print Screen
  173. Print the full screen to the
  174. .I iofile.
  175. .TP
  176. .B Print Screen
  177. Print the selection to the
  178. .I iofile.
  179. .TP
  180. .B Alt-Ctrl
  181. Launch dmenu to enter a unicode codepoint and send the corresponding glyph
  182. to st.
  183. .SH CUSTOMIZATION
  184. .B st
  185. can be customized by creating a custom config.h and (re)compiling the source
  186. code. This keeps it fast, secure and simple.
  187. .SH AUTHORS
  188. See the LICENSE file for the authors.
  189. .SH LICENSE
  190. See the LICENSE file for the terms of redistribution.
  191. .SH SEE ALSO
  192. .BR tabbed (1),
  193. .BR utmp (1),
  194. .BR stty (1)
  195. .SH BUGS
  196. See the TODO file in the distribution.