OSDN Git Service

(none)
authorryuz <ryuz>
Sat, 16 Feb 2008 05:38:54 +0000 (05:38 +0000)
committerryuz <ryuz>
Sat, 16 Feb 2008 05:38:54 +0000 (05:38 +0000)
aplfw/application/syscmd/shell/shell_curright.c [new file with mode: 0755]

diff --git a/aplfw/application/syscmd/shell/shell_curright.c b/aplfw/application/syscmd/shell/shell_curright.c
new file mode 100755 (executable)
index 0000000..d5138d4
--- /dev/null
@@ -0,0 +1,33 @@
+/** 
+ *  Hyper Operating System  Application Framework
+ *
+ * @file  shell_main.c
+ * @brief %jp{シェル}
+ *
+ * Copyright (C) 2006-2008 by Project HOS
+ * http://sourceforge.jp/projects/hos/
+ */
+
+
+#include "shell_local.h"
+
+
+
+/* カーソル右移動 */
+void Shell_CurRight(C_SHELL *self)
+{
+       self->iCurScreenX++;
+       if ( self->iCurScreenX >= self->iScreenWidth )
+       {
+               self->iCurScreenX = 0;
+               StdCon_PutString("\n");
+       }
+       else
+       {
+               StdCon_PutString("\x1b[1C");            /* カーソル右 */
+       }
+}
+
+
+
+/* end of file */