Justin Clark-Casey (justincc)
d5256094d9
print invalid command message to the console, not the log
2011-04-23 00:16:55 +01:00
Justin Clark-Casey (justincc)
a0469daf75
Implement command "land show". This shows all the parcels on the currently selected region/s
...
This is useful for diagnostics. The command is "land show" rather than "show land" because it's implemented as a module specific subcommand.
2011-01-26 21:12:41 +00:00
Justin Clark-Casey (justincc)
cb14e1d272
Update the "config get <section> <key>" command to "config get [<section>] [<key>]"
...
The config get command shows a current config value on the console.
Now, if <key> is omitted then all the values for the given section are printed.
If <section> is ommitted then all sections and all keys are printed.
Current config can also be dumped to a file using "config save <path>". This can be handy for resolving or eliminating config issues
2011-01-21 23:59:55 +00:00
Justin Clark-Casey (justincc)
859234f963
small refactor: reuse existing commandLine string rather than calling cmdline.ToString() again
2010-11-17 23:50:23 +00:00
Justin Clark-Casey (justincc)
c072a9cfb3
save all lines to history, not just those which turn out to be valid comands. does not store passwords
...
also, blank lines are not stored to history
this makes it easier to go back and correct a command which was simply mistyped rather than having to type it out again
2010-11-17 23:34:39 +00:00
Marck
4fdab71c8d
Add support for cross-domain AJAX requests to REST console.
...
Enables RemoteConsole to add the appropriate HTTP header when responding to requests that use Cross-Origin Resource Sharing (CORS with simple requests). The allowed origin is set with configuration option "ConsoleAllowedOrigin" in section [Network]. For a suggestion to make this configuration option more flexible, see the TODO comment in the source code.
The WifiConsole uses this functionality with grid mode.
2010-11-02 14:12:25 -07:00
Marck
211ea5d521
Limit formatting of local console output to actual logging messages.
...
The formatting of lines with the help of a regular expression match will be done only for output with an explicitly given logging level.
This fixes the issue of colons being added to help texts on the local console.
2010-10-09 00:47:39 +01:00
Marck
cd42cdcc89
REST Console delivers responses with content type text/xml instead of text/plain.
...
Non-error responses to requests SessionCommand and CloseSession should use the appropriate content type for their XML data payload.
2010-09-18 02:24:04 +01:00
Jeff Ames
f1f0bc23f4
Formatting cleanup.
2010-09-12 13:43:49 -04:00
Jeff Ames
20cd1da6bf
Add copyright headers.
2010-09-12 12:54:31 -04:00
randomhuman
30306a775a
Made it impossible to create a user with names containing spaces and prevented passwords from being echoed after enter is pressed.
2010-09-10 23:19:18 +01:00
Diva Canto
0c0ac65d38
Added ': ' to password prompt. Mantis #4851
2010-07-22 04:00:24 -07:00
Melanie
544627c79c
Force newly connecting remote consoles to display a prompt
2010-06-17 03:03:55 +01:00
Melanie Thielker
a791689ceb
Make the text mode remote console really work. It can now be used to send
...
multi-word commands with proper quoting, handles arguments with spaces
and allows interactive use, e.g. user creation.
2010-06-08 22:05:06 +01:00
Justin Clark-Casey (justincc)
3c0f34bc2b
If a command has descriptive help, add a line above and below the print out for readability
2010-05-28 20:51:02 +01:00
Justin Clark-Casey (justincc)
fff5459f4d
Add ability to load IARs directly from URIs
...
So, something like
load iar Justin Clark-Casey / PASSWORD http://justincc.org/downloads/iars/my-great-items.iar
Will load my IAR directly from the web.
2010-05-28 20:07:15 +01:00
Melanie
e4b8d76b10
Change appender to deal with line feeds more intelligently.
...
Change migration error reporting to not truncate the statement when
reporting. It's a bit messier than the old error reporting, but at least
one gets an idea of what could be wrong again. And things look a lot
neater now.
2010-05-19 04:17:56 +01:00
Melanie
0c209a469b
Clean up output a bit
2010-05-19 03:48:03 +01:00
Teravus Ovares (Dan Olivares)
a9db266d93
* Added an important comment to warn people not to use MockConsole for anything but testing.
2010-05-04 22:16:07 -04:00
Teravus Ovares (Dan Olivares)
f005e570aa
* This should fix the tests failing because of a MainConsole.Instance null reference
...
* Added a MockConsole that doesn't require a handle to System.Console
2010-05-04 22:13:25 -04:00
Justin Clark-Casey (justincc)
48f3733963
Fix http://opensimulator.org/mantis/view.php?id=4657 where OpenSim.Grid.UserServer.exe fails on startup if no previous config
...
probably appears to occur because mono 2.4.2.3 (and possibly later) erroneously returns a value of 0 for BufferWidth and BufferHeight in some circumstances
2010-04-16 20:43:23 +01:00
Jeff Ames
af265e001d
Formatting cleanup.
2010-02-15 19:21:56 +09:00
Adam Frisby
19d4867af7
* Quick fix to Remote Console session ID handling.
2010-01-26 07:40:33 +11:00
mbowman
c211a120a5
Console output no longer requires loglevel to be set to info; you can run the simulator with log level WARN or ERROR and see the output of console commands
...
Signed-off-by: Melanie <melanie@t-data.com>
2010-01-20 00:16:08 +00:00
Justin Clark-Casey (justincc)
22b1ffdc6c
Fix repeated ArgumentOutOfRangeException when a local OpenSim console is resized under mono
...
May fix mantises 3186, 3270, 4022, 4238
2010-01-08 14:45:40 +00:00
Jeff Ames
ee205e7e81
Formatting cleanup.
2009-10-01 01:17:47 +09:00
Melanie
dafe5bf05f
Completely remove the prior implementation of the request event handling
...
on poll handlers. Introduce a new delegate on the PollServiceEventArgs that
allow access to the request headers and body.
2009-09-22 06:19:02 +01:00
Melanie
bc9e4cfd96
Add a RequestID (UUID.Random()) to the PollRequest and pass it to all
...
even hander delegates.
2009-09-21 18:11:40 +01:00
Melanie
04170521f0
Add a UUID param to NoEvents in PollServiceEventArgs to make it more generic
2009-09-21 14:59:31 +01:00
Melanie
2a1b5e3540
A small fix for remote console to accommodate PollServiceArgs behavior a
...
bit better
2009-09-21 14:14:22 +01:00
Jeff Ames
02f937b0dc
Fix some compile warnings.
2009-08-26 14:02:52 +09:00
Melanie
a22b12ecd4
Change prompt handling in console. No user changes
2009-08-22 20:18:24 +01:00
Melanie
cef16bec6d
Add the OpenSim.ConsoleClient app.
...
Usage: OpenSim.ConsoleClient -h <host> -p <port> -u <user> -P <pass>
host defaults to localhost, port defaults to 8003.
2009-08-17 08:45:20 +01:00
Melanie
002940dd5d
Filling in the blanks: The "meat" of the REST console
2009-08-17 05:00:30 +01:00
Jeff Ames
840de6c036
Minor: Change OpenSim to OpenSimulator in older copyright headers and LICENSE.txt.
2009-06-01 06:37:14 +00:00
Jeff Ames
35b450d41d
Add copyright headers, formatting cleanup, ignore some generated files.
2009-05-31 18:35:00 +00:00
Justin Clarke Casey
ca9432d110
* Display normal log information in the console's default foreground colour, for those of us with white backgrounds
2009-05-25 16:29:01 +00:00
lbsa71
ba360ede8b
* Upped version number to 0.6.5
2009-05-25 11:43:56 +00:00
Dr Scofield
1d02636c27
cleaning out warnings.
...
NOTE: we currently have a gazillion warnings caused stuff flagged as
"obsolete" (OGS1 stuff) --- what's up with that?
2009-05-22 14:57:00 +00:00
Melanie Thielker
e5f3337c3f
Implement .ini file includes. Anything that begins with "Include-" will be
...
treated as another ini source to load.
For example:
Include-Asset = AssetSetup.ini
will load AssetSetup.ini after all other ini files are done.
This works recursively, too
2009-05-21 23:06:10 +00:00
Melanie Thielker
787d58ae7f
Put some meat on the bones of the REST console. NO user functionality yet
2009-05-20 20:28:57 +00:00
Melanie Thielker
3ae9bb6d83
Move the color console logic from the appender into the local console, since
...
that is the only one that can use it. Change appender output to always go
through the console output functions.
2009-05-20 14:40:50 +00:00
Melanie Thielker
4065ebff15
Remove the pre-log4net, discrete output methods from the consoles
2009-05-20 13:50:33 +00:00
Melanie Thielker
f28b380c4a
Committing the new server base
2009-05-05 01:34:41 +00:00
Melanie Thielker
acfb5051cd
Intermediate commit. WILL NOT COMPILE!
2009-05-04 20:15:39 +00:00
Justin Clarke Casey
257fc5515a
* minor: remove some mono compiler warnings, minor cleanup
2009-05-04 15:38:36 +00:00
Melanie Thielker
f80ba373fa
Prebuild changes to allow the console to reference the http server
2009-05-04 15:04:24 +00:00
Melanie Thielker
eedf216eba
Add a skeleton class, "RemoteConsole", for a console that uses REST
2009-05-04 12:29:44 +00:00
Melanie Thielker
1b877234da
Refactor. Make ConsoleBase a true base class. Create CommandConsole as a simple
...
console capable of processing commands. Create LocalConsole as a console
that uses cursor control and context help. Precursor to a distributed
console system for the new grid services. No functional change intended :)
2009-05-04 12:15:55 +00:00
lbsa71
958d764172
* Upped trunk version number to 0.6.4 as we just tagged 0.6.4-release
2009-04-01 19:44:46 +00:00
Melanie Thielker
3ad2fef2d3
Prevent ICommander-generated subcommand trees from generating an exception
...
when the tree root command is executes without another verb following it.
Fixes Mantis #3258
2009-03-05 21:20:57 +00:00
Charles Krinke
8f55b9d735
Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
...
* Added log4net dependency to physxplugin in prebuild.xml.
* Added missing m_log fields to classes.
* Replaced Console.WriteLine with appropriate m_log.Xxxx
* Tested that nant test target runs succesfully.
* Tested that local opensim sandbox starts up without errors.
2009-02-22 20:52:55 +00:00
Melanie Thielker
aaf8b07ecf
Allow entry of '?' in http URIs. If the field being typed begins with
...
"http", the ? is just an ordinary character in that field.
2009-02-21 11:48:50 +00:00
lbsa71
2e095f5727
* Upped VersionInfo to 0.6.3 and in the process, changed assemblyinfo to 0.6.3.* to better track down dll ref and overwrite problems.
2009-02-20 16:47:31 +00:00
lbsa71
5af465a364
* Changed all AssemblyInfo to explicit version 1.0.0.0 to not confuse poor poor Nant. We probably should take the opportunity to let the non-module bins reside in their /bin/Debug dirs later.
2009-02-19 14:51:33 +00:00
Melanie Thielker
a8f3d625cb
Guard the values used to set the cursor position in the real time console
2009-02-13 20:49:23 +00:00
Justin Clarke Casey
88b273bc71
* refactor: Move export map function to world map module from scene
2009-02-13 16:43:20 +00:00
Jeff Ames
163c1026d1
Fix some compiler warnings. Minor formatting cleanup.
2009-02-13 02:52:08 +00:00
lbsa71
801da4346a
* optimized usings.
2009-02-12 09:53:12 +00:00
Melanie Thielker
9bfbfa381a
Add proper handling for shared vs. unshared modules to the command
...
interface. Shared modules will now only get added once, so the command
handler is called once per module, not once per scene. Removal of scenes
has no adverse effects. Nonshared modules will be called for each scene.
2009-02-10 23:15:48 +00:00
Melanie Thielker
87f328bd30
Change the command parser and resolver to be able to disambiguate commands
...
that are a prefix of another command. Fixes "terrain load"
Fixes Mantis #3123
2009-02-10 14:39:04 +00:00
Melanie Thielker
a1393db7f0
Stopgap measure: To use gridlaunch, or GUI, start opensim with
...
OpenSim.exe -gui=true
2009-02-10 12:25:29 +00:00
Jeff Ames
a3d14832af
Update svn properties, minor formatting cleanup.
2009-02-09 22:49:05 +00:00
Justin Clarke Casey
a034b640da
* Add the ability to type help <command> for more detailed help about a specific command if any is available
2009-02-09 20:52:04 +00:00
Melanie Thielker
e4ab15ccb1
Fix a .NET issue where changing a locked reference would cause a crash
2009-02-07 15:51:00 +00:00
Melanie Thielker
54c6a920ba
Replace the console for all OpenSim apps with a new console featuring command
...
line editing, context sensitive help (press ? at any time), command line
history, a new plugin command system and new appender features thet let you
type while the console is scrolling. Seamlessly integrates the ICommander
interfaces.
2009-02-07 12:25:39 +00:00
Dahlia Trimble
e94d862db2
Removed some of the darker colors from console messages as they were not visible in some terminal emulators (like putty)
2009-01-20 10:09:16 +00:00
Sean Dague
280ba00c68
oops hash codes can be negative, account for that
...
From: Sean Dague <sdague@gmail.com>
2009-01-19 21:38:31 +00:00
Sean Dague
c81395593d
added display of exception
...
From: Sean Dague <sdague@gmail.com>
2009-01-19 21:38:25 +00:00
Sean Dague
0f289ca405
change the appender to have a few more colors, none of which are red
...
From: Sean Dague <sdague@gmail.com>
2009-01-19 21:38:16 +00:00
Adam Frisby
6fb254965d
* Added some debug information when console commands fail.
2008-11-24 16:23:45 +00:00
Homer Horwitz
8ae8bec4d1
Changed "show users" command to display only root agents, "show users full" to
...
display root and child agents (mantis #2171 ).
2008-09-12 22:39:17 +00:00
Jeff Ames
bea7d4d81a
Update svn properties, formatting cleanup.
2008-08-19 02:59:27 +00:00
Justin Clarke Casey
9650632cd1
* It appears that sometimes some IClientAPI reference is not being released, resulting in continual execution of the CheckConnectivity timer method
...
* For now, just turn off this timer when we close the connection
* Also some minor help refactoring creeps in to this revision.
2008-08-18 21:14:38 +00:00
Jeff Ames
6ef9d4da90
Formatting cleanup.
2008-08-18 00:39:10 +00:00
Justin Clarke Casey
c602d76b79
* Insert a new 'set log level [level] command on the console'
...
* The primary immediate use is to provide a means of temporarily reducing log output on the console when executing console commands
* Changing the log level on the console is not permanent and does not affect the log information being put into OpenSim.log
* This could have been done by putting in a threshold level on the Console appeneder in OpenSim.exe.config and implementing config watching in the code.
* But I think that it's a little more user friendly to make this doable via the console.
2008-08-16 20:24:08 +00:00
Justin Clarke Casey
f2c456c23d
* Make currently selected region appear in the region console prompt
...
* This region is used for single region commands (such as save-xml2)
2008-08-05 17:28:23 +00:00
Justin Clarke Casey
32486dcaf5
* refactor: change console base 'component name' to 'default prompt' since that's the only thing it's being used for
2008-08-05 17:06:35 +00:00
Justin Clarke Casey
451c3d1dd7
* Hive off ConsolePluginCommand into its own framework class
2008-07-12 19:29:49 +00:00
Jeff Ames
5910a49da6
Update svn properties. Formatting cleanup.
2008-06-10 08:35:46 +00:00
mingchen
db151bcec7
*Fixed bug that caused failure when System.Console.Readline returns null (no stdin)
...
*Fixed bug that would crash the simulator if there were two physics/meshing engines loaded with the same name.
2008-06-09 15:20:08 +00:00
Justin Clarke Casey
fbaeb081aa
* Move most bookending startup/shutdown messages to BaseOpenSimServer so they appear in non-console servers too
2008-06-01 02:02:20 +00:00
Jeff Ames
65c5efe43b
Formatting cleanup.
2008-05-16 01:22:11 +00:00
Justin Clarke Casey
b4d128c811
From: Alan M Webb <awebb@vnet.ibm.com>
...
This patch just tightens up console handling in BasOpenSimServer
and removes (or redirects) a couple of messages that were being issued
using Console.Writeline.
2008-05-12 13:39:46 +00:00
Adam Frisby
01f31fd933
* Breaking all the code, breaking all the code..!
...
* Made a bunch more members static, removed some dead code, general cleaning.
2008-05-01 16:23:53 +00:00
Adam Frisby
4692e92312
* Assorted spring cleanings.
2008-05-01 14:45:56 +00:00
Teravus Ovares
12bba3da4b
* Fixed an annoying pop-up box when crossing borders.
2008-04-23 23:55:02 +00:00
Teravus Ovares
d194f21a5d
* Fix a console issue where pressing return on some operating systems cause the console to crash and complain about 0 regex matches.
2008-04-23 18:41:39 +00:00
Charles Krinke
67f2b89bf6
Thank you kindly, Tyre for :
...
Commands with arguments enclosed in Double quotation marks (e.g. filenames or objects with embedded blanks) should be parsed correctly. e.g.:
console command "edit-scale" don't accept prim names with embedded blanks
edit-scale Prim 20x20x20 20 20 20
Region# :
edit-scale "Prim 20x20x20" 20 20 20
Region# :
edit-scale Prim20x20x20 20 20 20
Searching for Primitive: 'Prim20x20x20'
Edited scale of Primitive: Prim20x20x20
Region# :
2008-04-23 14:31:54 +00:00
Adam Frisby
fef3b36894
* Optimised using statements and namespace references across entire project (this took a while to run).
2008-04-21 07:09:17 +00:00
Sean Dague
731dcbad5b
sadly, had to modify line by Ter because it caused mono cil compiler
...
to spin off into a seemingly infinite loop.
2008-04-01 13:04:29 +00:00
Teravus Ovares
a0a0229fdf
* Set Svn Properties eol-style: |337
2008-03-31 23:54:49 +00:00
Jeff Ames
47180080f0
Formatting cleanup.
2008-03-18 05:16:43 +00:00
Justin Clarke Casey
c66b5a9e71
Report command string on ConsoleBase.RunCommand exception
2008-02-20 17:54:14 +00:00
lbsa71
fec87ad3d7
* just added a readonly and a comment
2008-02-20 10:10:19 +00:00
Justin Clarke Casey
500d259c25
* Do not allow a user to be created if one with the same name already exists
2008-02-18 15:50:18 +00:00
Jeff Ames
3b9d332f84
Added copyright notices.
2008-02-17 01:16:40 +00:00
Sean Dague
741f753c56
attempt to make our logging at least fail gracefully, we'll see if this helps
2008-02-14 19:29:07 +00:00
Justin Clarke Casey
d546859bc1
* Change logger to handle [<entry>] where <entry> contains non alphabetic characters
...
* Change logger to not print extra line if [<entry>] <text> like string is not logged
* Remove more of my previous chatty debugging statements
2008-02-09 01:53:57 +00:00
Sean Dague
caa255bcdf
make a couple more changes to get us back very close to old color scheme
2008-02-06 20:59:31 +00:00