user_guide:shell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
user_guide:shell [2019/02/05 14:24] – [Switching between applications] removed third place where applications are explained oroehriguser_guide:shell [2019/02/11 16:21] – ↷ Links adapted because of a move operation oroehrig
Line 1: Line 1:
 ===== The polymake Interactive Shell ===== ===== The polymake Interactive Shell =====
  
-The default running mode of polymake is an interactive shell-like interpreter.  To start it, just type ''polymake'' in your command line. You will be presented with a command prompt accepting ''polymake''-perl, as described in the [[.perl_intro|''polymake''-perl intorduction tutorial]].+The default running mode of polymake is an interactive shell-like interpreter.  To start it, just type ''polymake'' in your command line. You will be presented with a command prompt accepting ''polymake''-perl, as described in the [[.tutorials:perl_intro|''polymake''-perl intorduction tutorial]].
  
 polymake excessively uses the TAB completion feature.  It tries to guess the proper context for the partially typed word (as far as the entangled perl syntax allows) and presents the possible continuations. polymake excessively uses the TAB completion feature.  It tries to guess the proper context for the partially typed word (as far as the entangled perl syntax allows) and presents the possible continuations.
Line 22: Line 22:
 ==== Continuation mode ==== ==== Continuation mode ====
 Each command must be concluded with a semicolon. If you hit ENTER without doing so, polymake supposes that your expression is going to be continued on the next line; you will see this on the changed input prompt, which will contain the continuation number in parentheses. This is useful for typing in conditional blocks or loops over several lines or the input of multi-line constants (e.g. for matrices). You can press Ctrl-C to escape from the continuation mode. Each command must be concluded with a semicolon. If you hit ENTER without doing so, polymake supposes that your expression is going to be continued on the next line; you will see this on the changed input prompt, which will contain the continuation number in parentheses. This is useful for typing in conditional blocks or loops over several lines or the input of multi-line constants (e.g. for matrices). You can press Ctrl-C to escape from the continuation mode.
 +
 +A neat trick to conveniently enter a matrix using the continuation mode:
 +<code>
 +polytope > $m = <<".";
 +polytope (2)> 1 0 0 0
 +polytope (3)> 1 1 0 0
 +polytope (4)> 1 0 1 0
 +polytope (5)> 1 0 0 1
 +polytope (6)> .
 +</code>
  
 ==== History and replaying ==== ==== History and replaying ====
  • user_guide/shell.txt
  • Last modified: 2021/01/12 15:55
  • by gawrilow