Skip to content

Commit 6c875d3

Browse files
committed
Remove old obsolete xterm note, add new obsolete kermit note
1 parent 1766b4d commit 6c875d3

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

README.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -185,22 +185,6 @@ GitHub.
185185

186186
* If you run `lsix foo.avi`, you're asking for trouble.
187187

188-
* Obsolete versions of xterm need configuration to detect window size.
189-
190-
If you are using Xterm(343) or below, to have `lsix` automatically
191-
adjust how many tiles it shows based on your window size, you'll need
192-
to add the following to your .Xresources:
193-
194-
! Allow lsix to read the terminal window size (op #14)
195-
xterm*allowWindowOps : False
196-
xterm*disallowedWindowOps : 1,2,3,4,5,6,7,8,9,11,13,18,19,20,21,GetSelection,SetSelection,SetWinLines,SetXprop
197-
198-
Xterm's configuration for this is rather recondite. In order to allow
199-
the operation checking the window size (#14), we have to tell xterm to
200-
_not_ allow window ops, but then we explicitly list the ops
201-
disallowed, and it just happens that that list does not include the
202-
number 14. _(This_ _is_ _very_ _silly.)_
203-
204188

205189
## Future Issues
206190

@@ -233,6 +217,30 @@ GitHub.
233217
uses only 16 color registers. (Sorry, 4-gray vt330 users! Time to
234218
upgrade. ;-) )
235219

220+
221+
* The [Kermit project](https://kermitproject.org/) created a MS-DOS
222+
terminal emulator that was popular in the late 1980s/early 1990s.
223+
Its sixel implementation is not compatible with lsix because it
224+
shows the graphics on a screen separate from the text. However, I
225+
noticed one interesting feature in its documentation: an escape
226+
sequence to request the current graphics window size and number of
227+
colors. It works like this:
228+
229+
```
230+
ESC [ ? 256 n Request screen size report
231+
232+
Report is ESC [ ? 256; Ph; Pw; Pc n for graphics systems
233+
234+
where Ph is screen height in dots
235+
Pw is screen width in dots
236+
Pc is number of colors (0, 1 or 16, for none, b/w, ega/vga)
237+
238+
Report is ESC [ ? 24; 80; 0 n for pure text mono systems.
239+
```
240+
241+
Did any other terminal emulators ever use the sequence? Would it be
242+
worthwhile to add to `lsix`?
243+
236244
* [libsixel](https://github.com/saitoha/libsixel) is an excellent
237245
project for writing programs that can output optimized Sixel
238246
graphics commands. Because I have a lot of respect for the project,

0 commit comments

Comments
 (0)