myadm

Simple MySQL client for the terminal
git clone git://git.bitsmanent.org/myadm
Log | Files | Refs | README | LICENSE

commit 2d42101f128d1af2862596f340bc14b1dd9935a1
parent ca3907407c5c3c9759146d6afb9dd1acae7a85d6
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Tue, 23 May 2017 22:11:25 +0200

Add g/G commands.

Diffstat:
Mconfig.def.h | 4+++-
Mmyadm.c | 1-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -25,6 +25,7 @@ static Key keys[] = { { NULL, CTRL('c'), quit, {.i = 1} }, { NULL, 'Q', quit, {.i = 1} }, { NULL, 'q', viewprev, {0} }, + { NULL, 'I', reload, {0} }, { NULL, 'k', itempos, {.i = -1} }, { NULL, KEY_UP, itempos, {.i = -1} }, { NULL, 'j', itempos, {.i = +1} }, @@ -33,5 +34,6 @@ static Key keys[] = { { NULL, KEY_NPAGE, itempos, {.i = +20} }, { NULL, CTRL('u'), itempos, {.i = -20} }, { NULL, KEY_PPAGE, itempos, {.i = -20} }, - { NULL, 'I', reload, {0} }, + { NULL, 'g', itempos, {.i = -9999} }, + { NULL, 'G', itempos, {.i = +9999} }, }; diff --git a/myadm.c b/myadm.c @@ -42,7 +42,6 @@ char *argv0; #define MYSQLIDLEN 64 #define MAXQUERYLEN 4096 - typedef union { int i; unsigned int ui;