Normally I can clear the screen with Ctrl+L but while running GAP, the key combo Ctrl+L just displays the last command entered.

  • This probably depends on your terminal emulator. Anyways, ctrl+L works for me (in GAP 4.8.8) Jan 28, 2021 at 22:54

1 Answer 1


GAP documents no obvious/direct way to do this, but you can run system commands from its prompt which may do it, e.g., using Exec:

gap> Exec( "clear" );
  • can you recommend any resources for learning about how system commands work in Bash? Mar 3, 2019 at 21:31
  • 2
    There's a lot: in "system", I was referring to any command that could be run using system, which covers a lot of territory. GAP has its own command-language, and provides (like some other programs) a way to use shell commands (or on Windows, analogous commands). Mar 3, 2019 at 22:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .