Opened 11 years ago

Closed 11 years ago

#432 closed proposed feature (fixed)

Add option to skip the CTRL-C prompt

Reported by: anonymous Owned by: somebody
Priority: minor Milestone: 3-1-5 and higher
Component: dontKnow Version: 3-1-3
Keywords: ctrlc cntrlc interrupt Cc:

Description

The CTRL-C prompt is really annoying for Sage (or potentially other software interfacing with Singular):

                     SINGULAR                                 /  Development
 A Computer Algebra System for Polynomial Computations       /   version 3-1-3
                                                           0<
 by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann     \   March 2011
FB Mathematik der Universitaet, D-67653 Kaiserslautern        \
> ^C// ** Interrupt at cmd:`$INVALID$` in line:';'
abort command(a), continue(c) or quit Singular(q) ?

The attached patch adds a command-line option --cntrlc=CHAR which skips the CTRL-C prompt and automatically answers CHAR. i.e. running Singular using

Singular --cntrlc=a

will always "abort" on CTRL-C.

Attachments (1)

cntrlc.patch (3.8 KB) - added by anonymous 11 years ago.

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by anonymous

Attachment: cntrlc.patch added

comment:1 Changed 11 years ago by hannes

Resolution: fixed
Status: newclosed

fixed as proposed, but without a new global variable

Note: See TracTickets for help on using tickets.