4726 Commits

Author SHA1 Message Date
payonel
e9680ec0e8 tab complete fix for nil hints 2017-05-14 23:53:00 -07:00
payonel
807dfb7224 bad timer bug fix: event timers should default to once 2017-05-14 23:39:14 -07:00
payonel
8f9eabc84e hostname to PS1 fix
hostname in PS1 cannot be set by the init signal as that occurs before /etc/profile, which overrides PS1

Also, clean up some code to not try to change PS1, but just change HOSTNAME

Added `hostname --update` to update $HOSTNAME by reading /etc/hostname again
2017-05-14 20:49:01 -07:00
payonel
7f1739614d improve error message for hostname 2017-05-14 17:18:31 -07:00
payonel
56cf8964f8 rewording some new man pages 2017-05-14 17:10:34 -07:00
payonel
b868a90389 correct man set wording 2017-05-14 17:00:08 -07:00
payonel
6a634e018a clean up TERM value with floor for lua 5.3 2017-05-14 16:59:00 -07:00
payonel
defe8c21dd setenv and getenv fixes and cleanup 2017-05-14 16:59:00 -07:00
Wilma456
ff2dbc8064 Add Manpages (#2363)
* Create set

* Create lshw

* Create less

* Create rmdir

* Create unset
2017-05-14 16:56:17 -07:00
Florian "Sangar" Nücke
56d3d6db1d Merge pull request #2381 from payonel/openos-1.6.2
code cleanup, memory optimizations, slim term code, and file renaming
2017-05-14 15:59:40 +02:00
Vexatos
b49353018b Turned Motion Sensor into an upgrade.
Closes #2241.
2017-05-14 15:33:31 +02:00
Vexatos
0b43ece099 Do not hardcode the mod ID in the update check.
Closes #2357.
2017-05-14 15:17:40 +02:00
Vexatos
4814f4a190 Merge pull request #2380 from stone3311/master-MC1.7.10
Fixed headings in README.md
2017-05-14 09:22:18 +02:00
payonel
79e8f863ea code cleanup, memory optimizations, slim term code, and system file organization
notable changes

### TTY
New /lib/tty library that provides the core readKeyboard and drawText functionality. /lib/term should still be used by user code and the tty api should be considered alpha. The intent in this separation of the code is to allow term api to remain unchanged and allow tty to adapt as improvements are made.

### delayloaded and now splitting
The delayloaded packaging system has been removed. The delayload system allowed for library object to appear loaded when in fact they were not. But this significantly increased boot time. The code now imploys "library splitting", saves tremendous memory, shortens boot time, and all libraries are fully usable even when partially loaded. In other words, it is all transparent to the user.

### boot memory cost
Numerous micro optimizations have been made. "boot to shell prompt" now idles at 156k allocated, or 40k free, up from ~26k free before this change. Yes, that's 14k less in this update.
2017-05-13 23:44:09 -07:00
stone3311
cc19a82e8e Fixed headings in README.md 2017-05-13 19:30:48 +02:00
payonel
bcadcdb21e dont full load kb keys on boot, and accept numpad enter for term 2017-03-30 09:12:44 -07:00
payonel
f57e9be79b relative loadfile, and less unicode
loadfile paths now respect relative paths from the working directory
/lib/shell had an abundance of unicode api calls which were mostly unncessary
2017-03-30 08:53:05 -07:00
payonel
400d7eed7e ls defaults, event registration fixes, term keycode
.shrc -p: show dir slash by default
event registration was incorrectly calling timers and unregistering
term handler for enter key fixed to use code instead of sym
ls fixed to respect -p for all dirs
2017-03-30 08:53:05 -07:00
Vexatos
d5cb5086e0 Update de_DE.lang 2017-02-19 09:09:44 +01:00
Florian Nücke
0654c76b82 Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.7.10 2017-02-14 22:36:14 +01:00
Florian Nücke
df548f8279 Update LuaJ and JNLua for better UTF-8 handling. Closes #2191. 2017-02-14 22:35:55 +01:00
Vexatos
eaa6582cde Made everything compile. 2017-02-12 13:01:29 +01:00
Vexatos
96179f3a51 Fix #2272. 2017-02-12 12:56:18 +01:00
Florian Nücke
10853f7a9a Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.7.10 2017-02-05 16:01:51 +01:00
Florian Nücke
2751cec8c1 Fixed nodes able to reach an added node but not being reachable by the added node not being notified of the node being added.
This fixes screens stopping to respond *in some configurations* when their chunk is loaded. Closes #2225.
2017-02-05 16:01:32 +01:00
payonel
d8471278ba require("internet").request now returns a function object
The function object can be called to read from the stream, same usage as before
But the object also exposes the request handle userdata, to allow calling close for example:

```
local request = require("internet").request("http://www.google.com")
print(request()) -- same as before
request:close() -- clean up resources now, as opposed to waiting for gc
```

closes #2255
2017-02-04 14:50:15 -08:00
Vexatos
afff699dff Merge remote-tracking branch 'origin/master-MC1.7.10' into master-MC1.7.10 2017-02-04 22:11:37 +01:00
Vexatos
e8352fb07f Use lower-case name for checking debug card access so that comparison with whitelist works properly.
Closes #2262.
2017-02-04 22:11:08 +01:00
payonel
989f39b7c8 Merge pull request #2261 from payonel/1.6.1-update
term safe slow write, fix pastebin get, low mem loadfile fix
closes #2230 
closes #1308
2017-02-04 11:53:45 -08:00
payonel
dbd2f3067f term safe slow write, fix pastebin get, low mem loadfile fix 2017-02-04 11:26:21 -08:00
Florian Nücke
81c34e0c14 Fire item toss event when agents try to drop items into the world. 2017-02-04 14:11:48 +01:00
Florian Nücke
706905603d Waila's back to calling server methods on the client apparently \o/ 2017-02-04 13:52:08 +01:00
Florian Nücke
5105266f90 Merge branch 'mfu' of https://github.com/Vexatos/OpenComputers into master-MC1.7.10
# Conflicts:
#	src/main/resources/assets/opencomputers/lang/en_US.lang
2017-02-03 23:37:49 +01:00
Florian Nücke
a84b557e93 Renderer to indicate block held MFU is bound to (and the face). 2017-02-03 23:37:09 +01:00
Florian Nücke
330745055f Tooltip for MFU. 2017-02-03 23:36:49 +01:00
Vexatos
645ca3e448 Added manual entry for MFU. 2017-02-03 23:36:14 +01:00
Florian Nücke
32c383ea11 Item icons for MFU. 2017-02-03 23:26:41 +01:00
Vexatos
0c64dd30fd Added device info to MFU. 2017-02-03 23:03:42 +01:00
Florian Nücke
0286b76b53 Merge branch 'mfu' of https://github.com/Vexatos/OpenComputers into master-MC1.7.10 2017-02-03 22:16:59 +01:00
Vexatos
9fd7adc341 Added device info to MFU. 2017-02-03 22:16:50 +01:00
Florian Nücke
709bfb7f4f So I'm told we're at 1.6.2 already. Waddaya know. 2017-02-03 22:16:40 +01:00
Florian Nücke
a9615de2f3 Merge branch 'mfu' of https://github.com/Vexatos/OpenComputers into master-MC1.7.10 2017-02-03 22:15:37 +01:00
Vexatos
4c3b7d03d8 Added device info to MFU. 2017-02-03 22:13:16 +01:00
Vexatos
f00b828332 Merge branch 'master-MC1.7.10' into mfu 2017-02-03 21:46:27 +01:00
Florian Nücke
5209f57239 Merge branch 'debug-messages' of https://github.com/Vexatos/OpenComputers into master-MC1.7.10 2017-02-03 21:43:09 +01:00
Vexatos
a5e718bb16 Allow debug cards to send messages to one another and text to a player's clipboard. Also added a command for sending messages to a debug card.
Closes #2253.
2017-02-03 17:45:44 +01:00
payonel
c86ce4d28c 1.6.1 update: memory, performance, devfs, relative links
reduced memory cost to boot to shell!
READONLY mount option added: `mount -r ...`
os.execute (and shell.execute) now correctly spawn child shells with isolated shell environment (i.e. shell env vars such as PWD do not proprogate to the parent shell) Note that require("sh").execute(env, command, ...) is an option for direct command execution if dirtying the current shell is desired. Note that /bin/source uses sh.execute for this purpose
/dev/components added with smart adapters and links
supported devfs components at this time:
computer, internet, filesystem, screen, gpu, modem, eeprom
components can be labeled with /bin/label
/dev/components/by-label respects component labels
/etc/udev/rules.d/ supports boot labels
* component labeling and udev rules should be considered experiemental
links can now be relative
devfs significantly simplified, api reduced to single create method
various code cleanup
/bin/cp and /bin/mv hardened and now share common code
multiple fs mount point now share appropriate meta data (e.g. links)
hardened fs library
fs now detects and appropriately handles link cycles (a->b->a)
grep fix: show multiple matches with -o
install .prop added support for "ignore" key, for floppies to NOT be detected as an install source candidate. If you have a floppy and you don't want install to list it for install options, add {ignore=true} in a .prop file
less and more call cat when there is no tty (e.g. piped via |)
ln can create relative links
pwd -P option added to show real path
a messy term gpu resize issue fixed where the gpu can change resolution before the terminal is able to handle the resize event
smart hinting (where single hint results can extend to the next set) has been improved and put in shared code: now shell has it not just lua shell
text stream reader/writer now supports unicode as well as binary mode, e.g. writing binary data to /dev/eeprom now fixed
2017-02-01 23:56:08 -08:00
Vexatos
9332bc70cd Properly send the cycling disk list to the client. 2017-01-28 13:59:53 +01:00
Vexatos
02add30920 Merge pull request #2209 from Vexatos/addon-disk-cycling
Allow addons to register their floppies for loot disk cycling.
2017-01-27 18:48:41 +01:00
Vexatos
ce304ea248 Allow nil to be passed to optional type-specific arguments, making them return their default value.
For #2232.
2017-01-22 15:12:38 +01:00