Opened 6 years ago

Last modified 6 years ago

#808 new proposed feature

Highlighting in prot's output the degree of the currently leading terms

Reported by: gorzel Owned by: somebody
Priority: minor Milestone: 4-2-0 and higher
Component: singular-kernel Version: 4-1-0
Keywords: highlight, current degree Cc:


When one is watching within a std-computation the output from prot It would be quite useful to see the current degree of the leading terms displayed in bold font. (Compare the highlighted output from UNIX' top command)

The current degree here is 22, but in longer output it is much harder to find.


I tried to implement it /modify the source code myself, but finally I got stuck, hints are welcomed how to do it.

Some pointers:

man xterm


man Term::ANSIColor

The 256-color control sequences are documented at

<> (search for 256-color).

Change History (2)

comment:1 Changed 6 years ago by hannes

No, it is not that easy: not everything is an 256 colour xterm. One has to:

  • test the terminal type
  • find the properties of it
  • find the control sequences for it

and each of these tests may fail and need a backup strategy. Also the tests may be based on termcap or terminfo (which adds an additional dependency which we want to avoid) different systems may have only one of it or even none.

Last edited 6 years ago by hannes (previous) (diff)

comment:2 Changed 6 years ago by gorzel

As the ticket is not closed yet, let me modify the proposal:

Instead of color highlighting it would be more useful to prefix the output of the actual degree by the letter 'd' so that it possible to find it in a log file (redirected stdout) by using grep.

Note: See TracTickets for help on using tickets.