woops, forgot cursor
This commit is contained in:
parent
ef83430f3a
commit
c601f2c319
2 changed files with 4 additions and 2 deletions
4
spine.c
4
spine.c
|
@ -336,6 +336,7 @@ confirm(void) {
|
||||||
static int
|
static int
|
||||||
spinecmdhandler (pinentry_t recieved_pinentry) {
|
spinecmdhandler (pinentry_t recieved_pinentry) {
|
||||||
text[0]='\0';
|
text[0]='\0';
|
||||||
|
cursor = 0;
|
||||||
pinentry = recieved_pinentry;
|
pinentry = recieved_pinentry;
|
||||||
|
|
||||||
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
|
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
|
||||||
|
@ -369,8 +370,7 @@ spinecmdhandler (pinentry_t recieved_pinentry) {
|
||||||
pinentry_cmd_handler_t pinentry_cmd_handler = spinecmdhandler;
|
pinentry_cmd_handler_t pinentry_cmd_handler = spinecmdhandler;
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[]){
|
main(int argc, char *argv[]) {
|
||||||
|
|
||||||
pinentry_init("spine");
|
pinentry_init("spine");
|
||||||
pinentry_parse_opts(argc, argv);
|
pinentry_parse_opts(argc, argv);
|
||||||
if (pinentry_loop())
|
if (pinentry_loop())
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
echo "SETDESC testing spine, type whatever
|
echo "SETDESC testing spine, type whatever
|
||||||
SETPROMPT whatever:
|
SETPROMPT whatever:
|
||||||
GETPIN
|
GETPIN
|
||||||
|
SETDESC type more of whatever:
|
||||||
|
GETPIN
|
||||||
SETDESC testing confirmation
|
SETDESC testing confirmation
|
||||||
confirm
|
confirm
|
||||||
BYE" | ./spine
|
BYE" | ./spine
|
||||||
|
|
Loading…
Reference in a new issue