打印本文 打印本文 关闭窗口 关闭窗口
使用JavaScript写的操作系统和输入法程序
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1690  更新时间:2009/4/23 11:25:48  文章录入:mintao  责任编辑:mintao

  JavaScript是一门客户端的脚本语言,但是你千万不要认为它功能弱哦,因为你看了下面的例子之后就明白了。

  一. 用JavaScript写的操作系统

  呵呵,那天同事开玩笑说,要是有个用JS写的操作系统就好了. 我们都笑他异想天开,想不到的是,竟然真的有用JavaScript写的操作系统:JS/UIX。它的网址是:http://www.masswerk.at/jsuix/。

  * 系统介绍

  它的首页上是这么说的:JS/UIX 是一个基于Web浏览器的类Unix操作系统,没有使用任何插件技术,完全采用Javascript编写。它包含一个虚拟机、一个shell、虚拟文件系统、进程管理、屏幕终端以及键盘映射。它兼容Netscapge、IE 4以上等浏览器。

  英文介绍:

JS/UIX is an UN*X-like OS for standard web-browsers, written entirely in JavaScript (no plug-ins used). It comprises a vir-tual machine, shell, virtual file-system, process-management,and brings its own terminal with screen- and keyboard-mapping.

The keyboard accepts the US-ASCII character set.As key-mapping depends from your browser, you may have to use the cursor and backspace buttons at the lower right of the
terminal. A complete keyboard can be accessed at the lower left.

Compatibility: Netscape 4+, MS IE 4+ and DOM-aware browsers.


  该系统文档也很完善,有一个支持的命令手册:http://www.masswerk.at/jsuix/man.txt,和一个版本历史记录。我测试过它支持Firxfox和IE,看来功能比较强大呀。

  * 如何使用

  打开在上面的网址,在页面顶端打开“> open terminal ”链接,那么将出现如下面的一个登陆提示框:

JS/UIX 0.45  starting up [init] ...                                             
                                                                                
  terminal (dhtml-gui) ready.                                                   
  bringing up the file-system ...            ok                                 
  re-entering file-system as root.                                              
  building tree ...                          ok                                 
  trying for RC-file ...                  found                                 
  rc-profile looks good.                                                        
  initializing rc-profile ...                ok                                 
  re-entering tree for command-system ...    ok                                 
  setting up system variables ...            ok                                 
  system up and stable.                                                         
  starting login-demon.                                                         
                                                                                
                                                                                
  JS/UIX:Log-on - type user-name (e.g. "guest") and hit <return>.               
                                                                                
 login:                                                                         
                                                                                
                                                                                
  在login中输入guest,回车就可以登陆了。进去以后就能够看到下面的提示:

                                Terminal ready.                                 
 JS/UIX 0.45 - The JavaScript virtual OS and terminal application for the web.  
 Type "info" for site information. Type "help" for available commands.          
 ------------------------------------------------------------------------------ 
[guest@www.masswerk.at:2]$                                                      
               &

[1] [2]  下一页

打印本文 打印本文 关闭窗口 关闭窗口