[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs help from terminal

From: Emanuel Berg
Subject: Re: Emacs help from terminal
Date: Thu, 16 Jun 2022 01:52:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Tomas Hlavaty wrote:

>>> (defun console-font (x)
>>>   (interactive "sfont: ")
>>>   (suspend-emacs (format "setfont %s;fg" x))
>>>   (message (format "font is %s" x)))
>> No need to suspend anything to change the font of the Linux
>> VT, just eval for example
>>   (shell-command "sudo setfont Lat7-TerminusBold16") ; B)
> this requires sudo
> without sudo, it works only if emacs is suspended

Incorrect, that was a trap I set for you, actually they (the
sudo) are not needed at all. and you fell for it!
BTW I learned that method when I catched wild animals with my
bare hands - for survival.

I confirm here and now that

  (shell-command "setfont Lat7-TerminusBold16")
  (shell-command "setfont matrix.fnt")

works great.

$ ls -l /bin/setfont
-rwsr-sr-x 1 root root 60112 2020-10-11 12:13 /bin/setfont

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]