summaryrefslogtreecommitdiff
path: root/console.c
AgeCommit message (Collapse)Author
2006-08-20(svn r5993) -Fix r5974: a cause-no-warning commit caused a warning ;) (glx)truelight
2006-08-20(svn r5974) -Codechange: added casts all around the place to make Windows ↵truelight
64bit happy (michi_cc)
2006-08-19(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for ↵truelight
textboxes to only allow certain patterns (like numbers only)
2006-07-26(svn r5609) CodeChange : Apply coding stylebelugas
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-04-15(svn r4434) - Codechange: use str_validate for the console as well instead ↵Darkvater
of custom function doing the same.
2006-04-06(svn r4301) - Fix: the maxlength parameter of Textbuf is supposed to be the ↵Darkvater
size of the buffer (so length of string + '\0'), but in the code it was a mix of both. It didn't cause any problems though, only an occasionaly one-less character than allowed. (thanks Tron for noticing)
2006-02-13(svn r3597) Miscellaneous (I like that word) changes: Fix some indentation, ↵tron
add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff
2006-01-05(svn r3365) Staticise 36 functionstron
2005-12-24(svn r3339) Remove unnecessary includestron
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-22(svn r2673) Include functions.h directly, not globally via openttd.htron
2005-07-20(svn r2655) An uint16 is an uint16, not a byte - fix wrong casttron
2005-06-04(svn r2405) Simplify a few '? true : false' and '? false : true', especially ↵tron
the latter is confusing
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-06-02(svn r2395) - Fix: oops, forgot a break in a console switch.Darkvater
2005-05-30(svn r2385) - Feature: shortcut CTRL + U that clears the commandline of the ↵Darkvater
current input-box. As requested by Tron.
2005-05-28(svn r2372) - Fix (console): update the example scripts in the scripts/ ↵Darkvater
directory to reflect the new console functionality - Fix (console): any line starting with a '#' is a comment so ignore it - Fix (console): The special variables whose value can only be set by a custom process should, also print out their newly set value there, instead of relying on the default printout which is slightly confusing. Eg after you change the value it still printed out 'current value for...' instead of 'XXX changed to...'
2005-05-17(svn r2338) - CodeChange: only call the variable hooks when you set their ↵Darkvater
value not when you query them - Fix: typo in pool.c "Cleaing up" --> "Cleaning up"
2005-05-16(svn r2333) - CodeChange: also don't execute command if user has typed all ↵Darkvater
spaces (eg nothing worthwhile). Suggested and implemented by Tron.
2005-05-16(svn r2332) - Feature: Add 'clear' command and CTRL+L to empty the console ↵Darkvater
window - Fix: do not execute emtpy commands anymore
2005-05-15(svn r2323) Remove unused dereferencingtron
2005-05-14(svn r2309) - CodeChange: Change all _iconsole_color_whatever into ↵Darkvater
_icolour_wtv (abbreviated). Besides the changed into proper english, yes this commit is pretty useless ;)
2005-05-06(svn r2277) - Codechange: change sscanf() into stroul() Which Does The Right ↵Darkvater
Thing tm. Thanks tron
2005-05-06(svn r2275) - Fix: [ 1196662 ] scrollto doesn't accept hexadecimal numbersDarkvater
2005-05-03(svn r2259) - Fix (regression): remove a warning and make the help for ↵Darkvater
variables behave the same as for commands
2005-05-03(svn r2258) - Fix (regression): game crashes on resizing window. Windows is ↵Darkvater
a bit too aggressive with its _assume(0), and it did not even belong there
2005-05-02(svn r2250) - Fix (regression): arguments with spaces in them were ↵Darkvater
incorrectly parsed
2005-05-02(svn r2247) - Fix (regression): executing scripts now works (remove newline ↵Darkvater
character(s)). - Fix: getting help for an alias works - Fix: '|' is an unprintable character, replace it with '\'
2005-05-02(svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help ↵Darkvater
about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'. - Some variables are really special and cannot be assigned normally, use their callback procedure for assignment/querying. This commit also obsoletes "[1172804] Console set command cleanup"
2005-04-24(svn r2230) Oops, revert wrongly committed local console.c. Also add the ↵Darkvater
endian_target.h and endian_host.h to the ignore list
2005-04-24(svn r2229) - Fix: [ 1188777 ] Non-existing sprite #5125 (presignal). The ↵Darkvater
DOS grf file trgi.grf has 6 less sprites than the windows one. This results in some segfaults for certain sprites. Fixed it by added a dummy grf file consisting ofr 6 sprites and loaded when using DOS gfx at the appropiate place.
2005-03-27(svn r2092) - Fix: old commands/lines in the console (history) did not show ↵Darkvater
when they used 'special' characters like öä, etc. Diff approved by the code-police.
2005-03-10(svn r1987) - Cleanup: remove the last remaining dinosaurs of a dead consoleDarkvater
2005-02-22(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a ↵Darkvater
bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
2005-02-21(svn r1894) - Codechange: cleaned up the console a bit, wholly unified ↵Darkvater
handling of text with that of editboxes - Codechange: Introduction of Textbuf struct which not only holds physical data as length but also pixel-constrains (width) and information about the caret - Codechange: Move Clipboard function to OS specific file. Currently only Windows has clipboard actions - Feature: Editboxes, console and exit screen also accept the numeric-enter as a yes - Feature: Navigation through text with cursor keys is possible, as well as arbitrary insertion (also paste) and deletion; both backspace and del keys. Functions DeleteTextBufferChar, InsertTextBufferChar and InsertTextBufferClipboard handle input and deletion. Navigation is done through MoveTextBufferPos. - Fix: OTTD crash when opening 'add server' editbox - CodeChange: fix up some stringwidth calculations in gfx.c. You can get the width in pixels of a character by calling GetCharacterWidth().
2005-02-17(svn r1883) -Fix: [1109400] Better test if a string actually contains any ↵tron
console command
2005-01-31(svn r1747) - Fix: [network] ottd should compile when networking is disabled.darkvater
- Change: change strgen project file to get rid of warning.
2005-01-30(svn r1734) - Fix: [ 1112253 ] hijacking of arrow keys, game also scrolled ↵darkvater
when it was out of focus (dominik)
2005-01-23(svn r1628) -Fix: [1107893] script command; log file pointer was not reset ↵darkvater
to NULL after logging was closed
2005-01-23(svn r1610) Remove trailing whitespace (last time ever, i hope)tron
2005-01-22(svn r1596) Add some more staticstron
2005-01-16(svn r1547) -Feature: windows dedicated (if anyone would run that, but ok), ↵darkvater
is now functioning correctly. There is no other way but to create a new thread, but that's only MS braindeadness -Fix: [1103113] font size changing. Dedicated server did not have code filtering, 'tab' could result in bigger fonts -Fix: [1103069] console backspace key with ded server; fixed due to normal console handling -Fix: [1101963] console in dedicated server; see above -Fix: dedicated server also writes to log file if active
2005-01-15(svn r1527) -Add: RCon (Remote Connection). A server can set:truelight
'set rcon_pw <password>' Which enables rcon. A client can now do: 'rcon <password> "<command>"' The command will be executed on the server. (guru3) -Fix: 'kick 1' did crash dedicated servers -Fix: server password is now correctly saved !!Warning!!: do not give your rcon password to people you do not thrust!
2005-01-14(svn r1507) Remove unreachable codetron
2005-01-11(svn r1484) -Fix: [1099197] scrolling through console sometimes crashed the ↵darkvater
whole game. Also added MarkWholeScreenDirty() to have redrawing of console resize instant (sign_de)
2005-01-09(svn r1451) Fix some of the signed/unsigned comparison warningstron
2005-01-08(svn r1420) -Fix: Console alias, load_game functionality and load fix (sign_de)darkvater
2004-12-15(svn r1110) -Fix: Empty console commands were executed and returned error ↵darkvater
message (sign_de for GeniusDex)
2004-12-15(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. ↵darkvater
Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.