Author: kevans
Date: Wed Feb 28 05:11:10 2018
New Revision: 330101
URL: https://svnweb.freebsd.org/changeset/base/330101

Log:
  lualoader: Add note that \027 is a decimal representation
  
  We've included an extra '0' in there (which might get removed later, but
  it's maintained for the moment for legacy purposes) which oftentimes
  indicate that the following number should be treated as octal. This is not
  the case, so note that to prevent future confusion (of myself and others).

Modified:
  head/stand/lua/core.lua

Modified: head/stand/lua/core.lua
==============================================================================
--- head/stand/lua/core.lua     Wed Feb 28 05:02:05 2018        (r330100)
+++ head/stand/lua/core.lua     Wed Feb 28 05:11:10 2018        (r330101)
@@ -46,6 +46,8 @@ core.KEY_BACKSPACE    = 8
 core.KEY_ENTER         = 13
 core.KEY_DELETE                = 127
 
+-- Note that this is a decimal representation, despite the leading 0 that in
+-- other contexts (outside of Lua) may mean 'octal'
 core.KEYSTR_ESCAPE     = "\027"
 core.KEYSTR_CSI                = core.KEYSTR_ESCAPE .. "["
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to