[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs help from terminal
From: |
Tomas Hlavaty |
Subject: |
Re: Emacs help from terminal |
Date: |
Thu, 16 Jun 2022 07:52:30 +0200 |
On Thu 16 Jun 2022 at 01:52, Emanuel Berg <incal@dataswamp.org> wrote:
> 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.
how old are you?
> 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
as I said, it does not work without sudo on my system:
$ ls -l $(readlink -f $(which setfont))
-r-xr-xr-x 1 root root 54512 Jan 1 1970
/nix/store/n0i1sx9vir7r8gcxp8559ii3vzbgxihz-kbd-2.4.0/bin/setfont
- Re: Emacs help from terminal, (continued)
- Re: Emacs help from terminal, Michael Heerdegen, 2022/06/14
- Re: Emacs help from terminal, Jean Louis, 2022/06/14
- Re: Emacs help from terminal, Emanuel Berg, 2022/06/14
- Re: Emacs help from terminal, Jean Louis, 2022/06/15
- Re: Emacs help from terminal, Emanuel Berg, 2022/06/15
- Re: Emacs help from terminal, Tomas Hlavaty, 2022/06/15
- Re: Emacs help from terminal, Emanuel Berg, 2022/06/15
- Re: Emacs help from terminal, Emanuel Berg, 2022/06/15
- Re: Emacs help from terminal, Tomas Hlavaty, 2022/06/15
- Re: Emacs help from terminal, Emanuel Berg, 2022/06/15
- Re: Emacs help from terminal,
Tomas Hlavaty <=
- Re: Emacs help from terminal, Emanuel Berg, 2022/06/16
- Re: Emacs help from terminal, Michael Heerdegen, 2022/06/15
- Re: Emacs help from terminal, Emanuel Berg, 2022/06/15
- Re: Emacs help from terminal, Samuel Banya, 2022/06/15
- Re: Emacs help from terminal, Robert Pluim, 2022/06/15
- Re: Emacs help from terminal, Emanuel Berg, 2022/06/15
- Re: Emacs help from terminal, Samuel Banya, 2022/06/15
- Re: Emacs help from terminal, Emanuel Berg, 2022/06/15
- Re: Emacs help from terminal, Robert Pluim, 2022/06/16
- Re: Emacs help from terminal, Samuel Banya, 2022/06/16