Skip to content
Snippets Groups Projects

Console improvements

Merged Inuyasha requested to merge console-improvements into master
  • Unused console backgrounds no longer take up memory
  • Input cursor can now move left and right
  • Support for selections (Shift-arrow keys, CTRL-A, etc)
  • Clipboard support (CTRL-C to copy, CTRL-V to paste, CTRL-X to cut)
  • Fixed handling of simultaneous modifier key presses

https://dl.dropboxusercontent.com/u/3518218/21/console.gif

None of this affects chat yet, that's not part of the console. I'll look at it later.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
84 84
85 85 // hold 32 last lines of input for history
86 86 #define CON_MAXPROMPTCHARS 256
87 #define CON_PROMPTCHAR '>'
87 #define CON_PROMPTCHAR '$'
  • Contributor

    This is the only thing I'm particularily confused about. Why $? Usually I've seen that used for environment variables, not a beckoning command prompt. Or is this just an obvious way to convey that future versions of the game have an improved console?

  • Inuyasha
    Inuyasha @Inuyasha started a thread on the diff
  • 84 84
    85 85 // hold 32 last lines of input for history
    86 86 #define CON_MAXPROMPTCHARS 256
    87 #define CON_PROMPTCHAR '>'
    87 #define CON_PROMPTCHAR '$'
  • toaster
    toaster @toaster started a thread on the diff
  • 84 84
    85 85 // hold 32 last lines of input for history
    86 86 #define CON_MAXPROMPTCHARS 256
    87 #define CON_PROMPTCHAR '>'
    87 #define CON_PROMPTCHAR '$'
  • :thumbsup: Tested this out for myself, all works fine

  • Contributor

    :thumbsup: tested, very nice, not sure why you put cyan AFTER blue instead of before (considering the ordering of the colours - cyan is between green and blue) but not really much of an issue and this'll probably need to be fiddled with for internal so that there can be a royal purple console which i'll probably use all the time jsyk

  • Inuyasha mentioned in commit 2569a1ed

    mentioned in commit 2569a1ed

  • Inuyasha Status changed to merged

    Status changed to merged

  • OpenGL incorrectly assumes it's rendering at 320x200 all the time, despite the game knowing the resolution it's actually set to, resulting in the selection highlight being offset more and more at higher resolutions, especially if con_height is set to something really high.

    As you can imagine, this can be a big annoyance for people who play in OpenGL mode at resolutions larger than 320x200. Image example, although only with a small con_height: http://imgur.com/DmbKcvw

    But other than that, these console upgrades are pretty amazing, especially if you make a typo halfway through a command name. Nice work.

  • Please register or sign in to reply
    Loading