-1
$\begingroup$

Is there is a way to recall a command from the history on the Ubuntu GAP system prompt? (something like CTL-R on Linux systems). Basically I want to reuse a command that I typed before, but the only thing that I found is the Up arrow, which is very slow...

Many thanks.

$\endgroup$
3
  • 2
    $\begingroup$ This is a question about GAP, not about research-level mathematics. For what it's worth, if you access GAP through a Sage notebook, as is probably easiest, then you can use the Sage notebook-editing capabilities. $\endgroup$
    – LSpice
    Mar 16, 2021 at 12:37
  • 1
    $\begingroup$ I don't know about the version bundled in Ubuntu, but if GAP is compiled with GNU readline support then the standard readline search functions (Ctrl-r and Ctrl-s) should be enabled. You can use the instructions shown on the manual page to check if your version of GAP is built with readline support. If the installation seems correct, but the key combo still doesn't work, it is best to reach out to the experts. $\endgroup$ Mar 16, 2021 at 12:46
  • $\begingroup$ Many thanks @WillieWong I missed the ./configure with readline support. I am rebuilding GAP now and I hope it will work. will give you a feedback in few minutes. Could you please turn your comment into an answer? $\endgroup$
    – Conjecture
    Mar 16, 2021 at 12:57

1 Answer 1

0
$\begingroup$

I don't know about the version bundled in Ubuntu, but if GAP is compiled with GNU readline support then the standard readline search functions (Ctrl-r and Ctrl-s) should be enabled. You can use the instructions shown on the manual page to check if your version of GAP is built with readline support. If the installation seems correct, but the key combo still doesn't work, it is best to reach out to the experts.

(Converted from comment)

$\endgroup$
5
  • 2
    $\begingroup$ I believe one shouldn't encourage off-topic questions. There are active forums dedicated to such questions. $\endgroup$
    – YCor
    Mar 16, 2021 at 13:23
  • 1
    $\begingroup$ @YCor: the [gap] tag has existed on MO since 2016, and is a software used in research mathematics. This question falls into what I consider a "gray area". While I accept and appreciate the difference of opinion on whether it is off-topic, I do not appreciate your lecturing tone in the previous comment. $\endgroup$ Mar 16, 2021 at 14:17
  • 1
    $\begingroup$ Sorry for the tone, I just view it as expressing an opposite opinion. I'm aware of the Gap tag (I'm using SageMath so I'm highly supporting Gap). Browsing this tag or other software tags, you'll see that questions there have some mathematical flavor. Sometimes the mathematical substance is low and we're in the "grey area". Here there's no mathematical contents at all. $\endgroup$
    – YCor
    Mar 16, 2021 at 14:48
  • 2
    $\begingroup$ Dear @YCor: Thank you for your response. My attitude is evidently more permissive. But since this is not about mathematics, I think it is fine to have a difference of opinion. Best. $\endgroup$ Mar 16, 2021 at 15:26
  • $\begingroup$ FWIW, there are GAP tags at math.stackexchange.com/questions/tagged/gap (600+ questions) and stackoverflow.com/questions/tagged/gap-system (~40 questions) - and other support channels, mentioned at math.stackexchange.com/tags/gap/info. $\endgroup$ Mar 17, 2021 at 22:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.