Feature request #2570

GRASS notice on top of the shell

Added by Paolo Cavallini over 14 years ago. Updated almost 7 years ago.

Status:Feedback
Priority:Low
Assignee:-
Category:GRASS
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:12630

Description

When opening the GRASS shell within QGIS, the user is no longer noticed that (s)he is actually in a grass shell, as it used to be. It might be better to have it back (or to define a prompt of the form "grass>").

History

#1 Updated by Giovanni Manghi almost 13 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#2 Updated by Paolo Cavallini almost 13 years ago

  • Assignee deleted (Lorenzo Masini)
  • Pull Request or Patch supplied set to No

#3 Updated by Giovanni Manghi over 12 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#4 Updated by Pirmin Kalberer about 12 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

#5 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No

#6 Updated by Paolo Cavallini almost 7 years ago

  • Status changed from Open to Feedback

Seems OK now.

#7 Updated by Radim Blazek almost 7 years ago

The shell in QGIS GRASS Tools does not set prompt PS1, so the default or set by user is used.
GRASS standard shell forces

PS1='GRASS %s (%s):\\w > '\n" % (grass_version, location_name)

I am not convinced that we want to waste space for that, we have title in tools like this:
GRASS tools <location>/<mapset>

We could add a welcome message like:

Welcome to GRASS GIS <version> shell

#8 Updated by Paolo Cavallini almost 7 years ago

This seems a reasonable solution. Thanks Radim.

#9 Updated by Radim Blazek almost 7 years ago

However it seems simple, I cannot find easy way to print a message to shell directly
without calling external script.

The class/method which receives data is private:

QTermWidget.m_impl->m_session->emulation()->receiveData(const char* text, int length)

Also available in: Atom PDF