Running certain commands in tty of guest in Gnome Boxes pushes prompt off screen

Discussion in 'Desktop Operation' started by jeremy ruddock, Feb 15, 2023.

  1. jeremy ruddock

    jeremy ruddock New Member

    Hello, i seem to be having some problems with using tty terminals on a guest OS (Fedora 37, Gnome 43) in Gnome Boxes, running a command that gives long output, such as cat on a large file, pushes the prompt off the bottom of the screen, with the only way to get it back seeming to be clearing the screen. Could anyone possibly provide a solution for this? I wasn't able to find a lot about this, but what i could find suggested it had to with the wrong resolution being set for the vm. Any help would be greatly appreciated.
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    You can list all available framebuffer modes with a tool like hwinfo and set one of the modes in your grub defaults and then update grub and reboot. Or set them temporary by editing grub config while booting.

    For example add or change the line in /etc/default/grub:
    Code:
    GRUB_GFXPAYLOAD_LINUX=1280x1024
    and then run the update-grub and reboot:
    Code:
    update-grub
    reboot
     
    ahrasis likes this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    And you can use the command 'more' to view the output step by step. e.g.:

    ls -la /etc | more
     
    ahrasis likes this.
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Start with command
    Code:
    type -a echo
    to see which echo command you are using. If it is shell builtin, read command shell documentation on how echo works. If echo is an executable file some /bin -directory, read man echo.
    Then learn how to get echo to output the enter you want after "hello".
    But I do wonder, what has your question to do with jeremy ruddocks question from february 2023 and howcome you ask command line things on Desktop Operation forum.
     

Share This Page