Feature #830

Console improvements

Added by Spyhawk about 4 years ago. Updated over 3 years ago.

Status:New% Done:

0%

Priority:Low
Assignee:-
Category:Client
Target version:2.78
OS: Arch:

Description

The client console can be improved in a number of way. Unvanquished implements the following features:

- Search the console output, to scroll to the last line that display some string,
- Grep, to display all console output lines that display some string,
- scrollbar marker, to display what has been displayed since you opened the console,
- prompt clock (display local time in console, not that useful but why not?)
- timestamp on entered command
- timestamp for comdump filename (see b18d57006725095c795fe968f7c2b1e103c7c18a)

They also have a nice scrolling effect with some transparency, which might give a more modern feeling to our console.

Also, check the Con_MessageMode{,2,3}_f functions. They seem deprecated and can probably be removed - check related KEYCATCH_MESSAGE too.
Check Con_DrawNotify and Con_ClearNotify - they don’t seem to be used at all, although we might use them for the 'update available’ warning.

2015-02-10-145132-supplydepot2.jpg (483 KB) Zelly, 11.03.2015 21:08

556

Related issues

Related to ET: Legacy Development - Bug #770: Full screen console being opened while console is part-open New 11.01.2015
Related to ET: Legacy Development - Feature #437: When next map starts console would start from the bottom ... New 26.12.2013
Related to ET: Legacy Development - Bug #419: Disappearing texts in console and settings menu in-game Fixed 10.12.2013
Related to ET: Legacy Development - Bug #832: Limbomenu changing colour due to a console issue Invalid 20.03.2015
Related to ET: Legacy Development - Bug #1258: con_drawNotify not working as it should New 21.04.2019

Associated revisions

Revision 1bf792b1
Added by Spyhawk about 4 years ago

client: moved dump print after error check

Revision 1108bb52
Added by Spyhawk about 4 years ago

client: fixed console scroll handle length

Revision b7013d4c
Added by Spyhawk about 4 years ago

client: fixed maximum console scroll back position

Revision 9b10379e
Added by Spyhawk about 4 years ago

client: adjusted console version string horizontal position

Revision 080eecf5
Added by Spyhawk about 4 years ago

client: use narrower scrollbar

Revision 13ac6ee7
Added by Spyhawk about 4 years ago

client: fixed last lines of visible in full console

Revision 9781152f
Added by Spyhawk about 4 years ago

client: factored console functions out and cleanup, refs #830

Revision 1fae5145
Added by Spyhawk about 4 years ago

client: minor console alignment enhancement, refs #830

Revision e75fbbd6
Added by Spyhawk about 4 years ago

client: factored console functions out and cleanup, refs #830

Revision 63ac39a8
Added by Spyhawk about 4 years ago

client: minor console alignment enhancement, refs #830

Revision d4bb7f66
Added by Spyhawk almost 4 years ago

client: added console animated scroll, refs #830

Revision 4d02bb27
Added by Spyhawk over 3 years ago

client: set scroll indicator transparency, refs #830

Revision 9ff62fa8
Added by Spyhawk over 3 years ago

client: slowed down console mouse scrolling, refs #830

Revision 2a36dafd
Added by Spyhawk over 3 years ago

client: renamed scr_conspeed for consistency, refs #830

Revision 6d3b178a
Added by Spyhawk 4 months ago

cgame: use consistent color for console location messages, refs #830

Revision 968e34f6
Added by Spyhawk 4 months ago

general: adjusted default blue color for console readability, refs #830

History

#1 Updated by Saukko about 4 years ago

  • Related to Bug #770: Full screen console being opened while console is part-open added

#2 Updated by Saukko about 4 years ago

  • Related to Feature #437: When next map starts console would start from the bottom again added

#3 Updated by Saukko about 4 years ago

  • Related to Bug #419: Disappearing texts in console and settings menu in-game added

#4 Updated by Saukko about 4 years ago

  • Subject changed from console improvements to Console improvements

#5 Updated by Spyhawk about 4 years ago

  • Description updated (diff)

#6 Updated by Mateos about 4 years ago

May I ask why link a list of new features to bugs?

#7 Updated by Saukko about 4 years ago

Because those would improve console experience?

-*S

#8 Updated by Mateos about 4 years ago

In programming terms, if you link between each other it means one bug getting fixed is part of fixing the other bound bugs.

I don’t see any link between bugs and features when programming on one task, that’s why I asked. That’s just my pov

#9 Updated by Spyhawk about 4 years ago

Saukko> Mateos is right. Bugs/Features linked should ideally have a direct relation to each other, or suspected to play a role in the linked bugs/features.

#10 Updated by Zelly about 4 years ago

Hopefully this is how I do comments in this, is kind of confusing to me.

Personally I have made changes to my console to open fullscreen by default.
As well as to take out the shader image of the console it has always bugged me.
I made my console entirely black with a small transparency and i think it looks really nice.
The only issue with this is that black test is very difficult to read, but it is no more difficult to read for me than grey was with the console shader. Also there is an issue sometimes when a lot of text is printed it will not show my input until i hit enter. I assume that it is easily fixed, however I do not know C very much at all and I just go by trial error...
Also I made /condump (with no arguments) save a condump with the current time/date as the name.
I attached ss of what myn looks like (Ignore the lua stuff in the console )

#11 Updated by Dragonji about 4 years ago

Spyhawk wrote:

- prompt clock (display local time in console, not that useful but why not?)

Why yes?
It’s completely useless as every single mod has cg_drawTime.

#12 Updated by Spyhawk about 4 years ago

  • Description updated (diff)

#13 Updated by Spyhawk about 4 years ago

  • Description updated (diff)

#14 Updated by Spyhawk about 4 years ago

  • Related to Bug #832: Limbomenu changing colour due to a console issue added

#15 Updated by Spyhawk about 4 years ago

  • Description updated (diff)

#16 Updated by Dragonji over 3 years ago

Is there an option to control how fast should scrolling work? By speed I mean number of lines I scroll up/down when I press PgUp/PgDown once.

#17 Updated by Spyhawk over 3 years ago

Dragonji wrote:

Is there an option to control how fast should scrolling work? By speed I mean number of lines I scroll up/down when I press PgUp/PgDown once.

No. The number of lines scrolled is half of the total number of lines visible in console.

#18 Updated by Dragonji over 3 years ago

I feel like it’s scrolling too much at once. AFAIR, in vanilla ET only 2 or 3 lines are scrolled up at once.

Could there be a setting for scrolling speed in ET:L?

#19 Updated by Spyhawk over 3 years ago

Dragonji wrote:

Could there be a setting for scrolling speed in ET:L?

I’d rather find a good default than add another cvar for a tiny setting. Also, half a screen scrolling with Pg Up/Pg Down is pretty standard on Unix system.

#20 Updated by Mateos over 3 years ago

And in Windows you can choose in the mouse settings...

#21 Updated by Dragonji over 3 years ago

Mateos wrote:

And in Windows you can choose in the mouse settings...

Why would I change it globally if I find the default setting not accurate only in one application?

#22 Updated by Mateos over 3 years ago

I meant by this that the OS offers a tweak, so why not the game ^^'

#23 Updated by Dragonji over 3 years ago

Mateos wrote:

I meant by this that the OS offers a tweak, so why not the game ^^'

Oh, sorry, misunderstood you

Spyhawk wrote:

I’d rather find a good default than add another cvar for a tiny setting.

Well, there’s a cvar for controlling the speed of opening/closing console so...

Spyhawk wrote:

Also, half a screen scrolling with Pg Up/Pg Down is pretty standard on Unix system.

How about keeping current behaviour for PgUp/PgDown keys and "restore" vanilla’s amount (or even 1.5x vanilla’s) of scrolled lines for mouse scrolling?

#24 Updated by Spyhawk over 3 years ago

Hmm scrolling actually only calls PageUp or PageDown function, I did miss that here. I’ll see if I can implement proper scrolling here, thanks for the feedback Dragon.

Well, there’s a cvar for controlling the speed of opening/closing console so...

Oh, is it?

How about keeping current behaviour for PgUp/PgDown keys and "restore" vanilla’s amount (or even 1.5x vanilla’s) of scrolled lines for mouse scrolling?

Just had a look. It’s probably better to use a relative amount of lines rather than a fixed numbers of lines, so the "speed" would be adjusted across the various screen resolution.

Current is half a screen for PgUp/PgDn and mouse scrolling, let’s keep it that way for PgUp/PgDn but reduce it to 1/4 for mouse scrolling.

#25 Updated by Dragonji over 3 years ago

Spyhawk wrote:

Oh, is it?

It’s scr_conspeed. Yeah, its name is weird, I guess it’s the only cvar with scr_ prefix.

https://github.com/etlegacy/etlegacy/blob/master/src/client/cl_console.c#L293

#26 Updated by Spyhawk over 3 years ago

Dragonji wrote:

It’s scr_conspeed. Yeah, its name is weird, I guess it’s the only cvar with scr_ prefix.

Right. Guess I’ll renamed it to con_conspeed, as there are already other con_ variables.

#27 Updated by Mateos over 3 years ago

Maybe con_scrollspeed would be more explicit? conspeed could be the rate at which stuff is printed or it opens up

#28 Updated by Spyhawk over 3 years ago

Mateos wrote:

Maybe con_scrollspeed would be more explicit? conspeed could be the rate at which stuff is printed or it opens up

con_scrollspeed could be rate at which scolling occurs or rate at which console opens up... con_openspeed maybe?

#29 Updated by Mateos over 3 years ago

Well usually talking about scrolling is scrolling through a page using a mouse, up to you ^^' con_navscrollspeed? x)

#30 Updated by Dragonji over 3 years ago

Spyhawk wrote:

Right. Guess I’ll renamed it to con_conspeed, as there are already other con_ variables.

I guess there’s no reason to stick with mysterious conspeed if the cvar’s going to be renamed anyway. More adequate name would be appreciated.

#31 Updated by Spyhawk over 2 years ago

  • Related to Bug #274: Color codes on german QWERTZ keyboards don't work added

#32 Updated by Spyhawk over 2 years ago

  • Related to deleted (Bug #274: Color codes on german QWERTZ keyboards don't work)

#33 Updated by Spyhawk 2 days ago

  • Related to Bug #1258: con_drawNotify not working as it should added

Also available in: Atom PDF