Menu

#19 Looking for Linux bash shell script example for Grief and easy questions

1.0
closed
nobody
None
2024-05-06
2021-04-13
BobC
No

I am running Debian based antiX Linux with Xorg and IceWM window manager and RoxTerm for a terminal. I could use a different terminal if I needed to, but I think I'm Ok there.

I am looking for an example bash shell script code to setup environment variables and launch Grief.

Does anyone have any different color themes? Ie a set of color settings with white background similar to Geany? Or a set of Blue background ones similar to NC or Midnight Commander?

What extension should be used for my old Brief macros source code?

I am adding the following to my $HOME/.bash_aliases file. I think the standard macros are working, and help is working. Backups are not working.
export GRPATH=$HOME/.local/share/gr/macros:/usr/local/share/gr/macros
export GRHELP=/usr/local/share/gr/help
export GRBACKUP=$HOME/.cache/backups

  • Not sure what GRVERSIONS does
    export GRVERSIONS=5

I need to run 2 macros at startup, RDC and restore. I'm not sure how to compile them or call them. They used to be called from my bflags variable under Brief for DOS, but that doesn't seem to work. Adding them to the command line also didn't work. RDC are my personal macros and restore would reopen the same files as were open before which were saved in a list called state.rst pointed to by the bfile environment variable. I'm not sure if restore is needed for Grief?
export GRFLAGS="-aB3c3,3,2,2i90k1l512Mpu300 -Dega -mRDC -mrestore"
export GRFILE=$HOME/.local/share/gr/state.rst

Thanks for bringing back such a flexible editor! The macros with Brief were amazingly powerful.

Discussion

  • adamy

    adamy - 2021-04-14

    Packaged color schemes are defined under "macsrc/colors", there are number based on their vim counterparts;. run <F10>coloriser<CR><TAB> for a list of packaged schemes and/or set for the current edit session. The definition of the current scheme is available via <F10>colorscheme. Others can be imported with minimal effort, raise a ticket if you feel there are any worthy additions. To make the colorscheme sticky tweak "colorscheme:" within "~/.grinit", for example,

    colorscheme256: zenburn
    colorscheme: zenburn
    

    There are two backup methods, simple .bak or under a managed tree, For details on GRVERSIONS and related settings, see <F10>explain GRVERSIONS<CR>, same with GRHELP etc. <F10>help, for a full list of configuration elements, When enabled the management of backups is under a common directory, generally along side session recovery. for example

    ~/.gr/backup 
    ~/.gr/restore
    

    Generally GRPATH and GRHELP are the only required environment/shell vars, with others being sourced from their associated attributes within grinit.

    See the attached ".grinit" image for configuration details.

    I'm not familiar with RoxTerm yet it seems to be GNOME xterm based, hence try using "GRTERM=xterm-gnome". General xterm/termcap provides basic keyboard definitions, with additional work/knowledge required to fully access the keyboard, permitting full <Alt-x>, <Shift-Alt-x>, <Ctrl-x>, <Ctrl-Alt-x>, <Ctrl-NumPad-x> etc key-codes

    Exec'ing macros at startup is as you described. A simpler method to GRFLAGS is an alias with the required "-m" arguments. By the sounds of things the "restore" option (above) may give you the required functionality without the additional macros. Older Brief macros can require tweaking.

     

    Last edit: adamy 2021-04-14
  • BobC

    BobC - 2021-04-14

    Thanks for the reply, I'll dig into it tonight...

     
  • adamy

    adamy - 2024-05-06
    • status: open --> closed
     
  • adamy

    adamy - 2024-05-06
     

Log in to post a comment.

MongoDB Logo MongoDB