Thread: [Cgdb-devel] Patch: focus style.
Brought to you by:
bobbybrasko,
crouchingturbo
From: Gilboa D. <gi...@gm...> - 2010-10-28 16:01:19
Attachments:
cgdb-focusstyle.patch
|
Hello, While help my co-workers get accustomed to cgdb, I notice that they seem to be unable to detect the current "focus" line when scrolling through the code. Hence I added :set focusstyle cgdbrc option which has two options: - bold: default, current behavior. - highlight: new, current line is inverted (unless it's also the current gdb line) At least according to my coworkers, the "highlight" option it's a major improvement - at least when running under KDE konsole's default color scheme. (Tested also under xterm, seems to work just fine). - Gilboa |
From: Mike M. <mi...@su...> - 2010-11-13 11:12:53
|
Hi Gilboa, Thanks for submitting the patch. Although our syntax highlighting documentation is probably not perfect, there is in fact a way to accomplish this without a patch: :hi SelectedLineNr cterm=reverse You could also, for example, make the selected line number red: :hi SelectedLineNr ctermfg=red I'm glad you & your coworkers are getting some use out of CGDB. :) Mike -- Mike Mueller mi...@su... On Thu, Oct 28, 2010 at 9:01 AM, Gilboa Davara <gi...@gm...> wrote: > Hello, > > While help my co-workers get accustomed to cgdb, I notice that they seem > to be unable to detect the current "focus" line when scrolling through > the code. > > Hence I added :set focusstyle cgdbrc option which has two options: > - bold: default, current behavior. > - highlight: new, current line is inverted (unless it's also the current > gdb line) > > At least according to my coworkers, the "highlight" option it's a major > improvement - at least when running under KDE konsole's default color > scheme. (Tested also under xterm, seems to work just fine). > > - Gilboa |
From: Bob R. <bo...@br...> - 2010-11-13 15:12:04
|
Hi Guys, You know, I've also noticed Gilboa's complaint myself quite a few times. For some reason, I lived with the pain, instead of fixing it. I propose we make this, :hi SelectedLineNr cterm=reverse the default behavior. Any objections? Thanks, Bob On Sat, Nov 13, 2010 at 02:42:29AM -0800, Mike Mueller wrote: > Hi Gilboa, > > Thanks for submitting the patch. Although our syntax highlighting > documentation is probably not perfect, there is in fact a way to > accomplish this without a patch: > > :hi SelectedLineNr cterm=reverse > > You could also, for example, make the selected line number red: > > :hi SelectedLineNr ctermfg=red > > I'm glad you & your coworkers are getting some use out of CGDB. :) > > Mike > > -- > Mike Mueller > mi...@su... > > On Thu, Oct 28, 2010 at 9:01 AM, Gilboa Davara <gi...@gm...> wrote: > > Hello, > > > > While help my co-workers get accustomed to cgdb, I notice that they seem > > to be unable to detect the current "focus" line when scrolling through > > the code. > > > > Hence I added :set focusstyle cgdbrc option which has two options: > > - bold: default, current behavior. > > - highlight: new, current line is inverted (unless it's also the current > > gdb line) > > > > At least according to my coworkers, the "highlight" option it's a major > > improvement - at least when running under KDE konsole's default color > > scheme. (Tested also under xterm, seems to work just fine). > > > > - Gilboa > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Cgdb-devel mailing list > Cgd...@li... > https://lists.sourceforge.net/lists/listinfo/cgdb-devel |
From: Gilboa D. <gi...@gm...> - 2010-11-16 08:13:06
|
On Sat, 2010-11-13 at 10:05 -0500, Bob Rossi wrote: > Hi Guys, > > You know, I've also noticed Gilboa's complaint myself quite a > few times. For some reason, I lived with the pain, instead of > fixing it. > > I propose we make this, > :hi SelectedLineNr cterm=reverse > the default behavior. Any objections? > > Thanks, > Bob > Will cterm have any side effects on say, serial consoles? (Can't test it right now) - Gilboa |
From: Mike M. <mi...@su...> - 2010-11-29 09:40:21
|
On Tue, Nov 16, 2010 at 12:12 AM, Gilboa Davara <gi...@gm...> wrote: > On Sat, 2010-11-13 at 10:05 -0500, Bob Rossi wrote: >> Hi Guys, >> >> You know, I've also noticed Gilboa's complaint myself quite a >> few times. For some reason, I lived with the pain, instead of >> fixing it. >> >> I propose we make this, >> :hi SelectedLineNr cterm=reverse >> the default behavior. Any objections? >> >> Thanks, >> Bob >> > > Will cterm have any side effects on say, serial consoles? (Can't test it > right now) > > - Gilboa We don't know. Care to test it? There is also a 'term' qualifier (in addition to 'cterm'). Neither of us do any development over serial lines. -- Mike Mueller mi...@su... |
From: Gilboa D. <gi...@gm...> - 2010-11-29 11:37:31
|
On Mon, 2010-11-29 at 01:40 -0800, Mike Mueller wrote: > On Tue, Nov 16, 2010 at 12:12 AM, Gilboa Davara <gi...@gm...> wrote: > > On Sat, 2010-11-13 at 10:05 -0500, Bob Rossi wrote: > >> Hi Guys, > >> > >> You know, I've also noticed Gilboa's complaint myself quite a > >> few times. For some reason, I lived with the pain, instead of > >> fixing it. > >> > >> I propose we make this, > >> :hi SelectedLineNr cterm=reverse > >> the default behavior. Any objections? > >> > >> Thanks, > >> Bob > >> > > > > Will cterm have any side effects on say, serial consoles? (Can't test it > > right now) > > > > - Gilboa > > We don't know. Care to test it? There is also a 'term' qualifier (in > addition to 'cterm'). Neither of us do any development over serial lines. > Hello Mike, :hi SelectedLineNr cterm=reverse seems to be working just fine in serial console (checked w/ TERM=vt220, TERM=xterm and TERM=xterm-color). It seems to be a safe default option. - Gilboa |
From: Mike M. <mi...@su...> - 2010-11-30 07:05:47
|
On Mon, Nov 29, 2010 at 3:37 AM, Gilboa Davara <gi...@gm...> wrote: > Hello Mike, > > :hi SelectedLineNr cterm=reverse seems to be working just fine in serial > console (checked w/ TERM=vt220, TERM=xterm and TERM=xterm-color). > It seems to be a safe default option. > > - Gilboa Thanks for checking it out! In that case, I agree, let's make it the default behavior. -- Mike Mueller mi...@su... |