wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Common / StandaloneConsole / StandaloneConsole.cpp
index c7720d8..c5e76c2 100755 (executable)
@@ -404,8 +404,8 @@ class LineBuffer{
     vector<string> mHistory;
     string mLine;
     int mHistoryIndex;
-    int mCurrentPos;
-    int mCurrentPosTmp;
+    unsigned int mCurrentPos;
+    unsigned int mCurrentPosTmp;
     int mLineLength;
 public:
     LineBuffer():mHistoryIndex(0), mCurrentPos(0){
@@ -503,10 +503,10 @@ public:
                 case 49:
                     //home
                     mCurrentPos = 0;
-                    getch();
+                    a = getch();
                     break;
                 default:
-                    getch();
+                    a = getch();
             }
 
             return true;