]> Nishi Git Mirror - libw3.git/commitdiff
w3b update - u command
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Thu, 1 Feb 2024 01:58:09 +0000 (01:58 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Thu, 1 Feb 2024 01:58:09 +0000 (01:58 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@146 d27a3e52-49c5-7645-884c-6793ebffc270

Example/w3b/w3b.c
W3Version.h.p

index 31535b6797c118e762f608bfec7dc98a4c7870b6..ed5d3be0e9e0a8789c12bdf6309106f3cb4889cd 100644 (file)
@@ -390,6 +390,11 @@ int main(int argc, char** argv) {
                        rendered = false;
                        start += termh;
                        break;
+               case 'u':
+                       rendered = false;
+                       start -= termh;
+                       if(start < 0) start = 0;
+                       break;
                case '\n':
                case '\r':
                        break;
index 9e18bd71fe87795dc4ddc7a44d649049e6ee4f06..f004d378f5c57b29bdef4eaee7dc1b54410942ff 100644 (file)
@@ -6,7 +6,7 @@
 extern "C" {
 #endif
 
-#define LIBW3_VERSION "2.2A" \
+#define LIBW3_VERSION "2.2B" \
 SUFFIX
 
 #ifdef __cplusplus