Re: I found an even easier way to crash CMUCL 19c/19f on FreeBSD 7.1



I spent a half hour looking through the 'man mc'
pages, trying to find out how to gracefully exit from the program,
From: Vassil Nikolov <vniko...@xxxxxxxxx>
I have never used `mc', but I got curious, so I searched for `quit'
in the man page. However, do you have an `f10' key?

Yes. When I press it, it transmits the following sequence of five characters:

Control-open-square-bracket open-square-bracket digit-2 digit-8 tilde

Making that one keystroke be the contents of a CMUCL string, convert to hxd:
* (map 'list #'(lambda (ch) (format nil "~x" (char-code ch))) "^[[28~"))
==> ("1B" "5B" "32" "38" "7E")

Now is there any particular reason to believe that sequence of five
characters is in-combo specially meaningful to 'mc'?

Now since the four arrow keys transmit similar-looking sequences:
uparrow ^[[A
downarrow ^[[B
rightarrow ^[[C
leftarrow ^[[D
and the shell actually understands them and does the "right" thing
(up/down arrows navigate to previous/later shell commands,
left/right arrows move within a single command-line being edited)
it's plausable that the function-number keys might likewise do
something meaningful when typed at some Unix applications/utilities.

By the way, it's my understanding that those same sequences of
characters when sent *from* the host *to* the VT100 terminal
(emulator) are screen-edit cursor-motion commands. I discovered
some of them when scraping 'lynx' output via ext:run-program.
.



Relevant Pages

  • Re: F keys or Program Buttons capability
    ... Sticky Keys, things like that. ... Caveat: Under heavy use the keys lettering wears off. ... ALMOST ANY key or sequence of keys on the keyboard can be programmed, ... right-click and left-click access different commands. ...
    (microsoft.public.windowsxp.customize)
  • CookBook/Matrix document, CGI-SMTP (was months ago: Requesting advice how to clean up C code for
    ... If my mistake (in my CookBook/Matrix) is noted in any of those ... bookmarks, please cite a line or two of text at the point of the ... but would accept SMTP commands (all in one batch ... commands in sequence and return a corresponding sequence of ...
    (comp.lang.c)
  • Re: hash tables, non-random keys
    ... it's better to pick a hash function that works well on all the ... recently added keys; or the array can be a fixed size. ... sequence add followed by ten finds), ... and probe function, sorted, excerpt. ...
    (comp.programming)
  • Re: To AutoIncrement or not to AutoIncrement
    ... you were trying to import data from another source where the keys were already defined. ... And for the simultaneous data reading, that's exactly what I'm trying to avoid! ... > care about sequence, why would you use a GUID? ... You're fighting against SQL Server, ...
    (microsoft.public.sqlserver.programming)
  • Re: Why are there no ordered dictionaries?
    ... Append it to the sequence of keys. ... > I think this is also the behavior of associative arrays in PHP or Perl ... and we could put the resulting package on the Cheese Shop. ...
    (comp.lang.python)