~ubuntu-branches/ubuntu/vivid/ipmitool/vivid-updates

« back to all changes in this revision

Viewing changes to lib/ipmi_isol.c

  • Committer: Package Import Robot
  • Author(s): Luk Claes
  • Date: 2013-05-07 18:12:12 UTC
  • mfrom: (5.1.11 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130507181212-fitwelheknk3tqnq
Tags: 1.8.12-1
Merge new upstream from Ubuntu (Closes: #692292).

Show diffs side-by-side

added added

removed removed

Lines of Context:
365
365
printiSolEscapeSequences(void)
366
366
{
367
367
        printf(
368
 
                   "%c?\r\n\
369
 
        Supported escape sequences:\r\n\
370
 
        %c.  - terminate connection\r\n\
371
 
        %c^Z - suspend ipmitool\r\n\
372
 
        %c^X - suspend ipmitool, but don't restore tty on restart\r\n\
373
 
        %cB  - send break\r\n\
374
 
        %c?  - this message\r\n\
375
 
        %c%c  - send the escape character by typing it twice\r\n\
376
 
        (Note that escapes are only recognized immediately after newline.)\r\n",
 
368
                   "%c?\n\
 
369
        Supported escape sequences:\n\
 
370
        %c.  - terminate connection\n\
 
371
        %c^Z - suspend ipmitool\n\
 
372
        %c^X - suspend ipmitool, but don't restore tty on restart\n\
 
373
        %cB  - send break\n\
 
374
        %c?  - this message\n\
 
375
        %c%c  - send the escape character by typing it twice\n\
 
376
        (Note that escapes are only recognized immediately after newline.)\n",
377
377
                   ISOL_ESCAPE_CHARACTER,
378
378
                   ISOL_ESCAPE_CHARACTER,
379
379
                   ISOL_ESCAPE_CHARACTER,
484
484
                         */
485
485
                        switch (ch) {
486
486
                        case '.':
487
 
                                printf("%c. [terminated ipmitool]\r\n", ISOL_ESCAPE_CHARACTER);
 
487
                                printf("%c. [terminated ipmitool]\n", ISOL_ESCAPE_CHARACTER);
488
488
                                retval = 1;
489
489
                                break;
490
490
                        case 'Z' - 64:
491
 
                                printf("%c^Z [suspend ipmitool]\r\n", ISOL_ESCAPE_CHARACTER);
 
491
                                printf("%c^Z [suspend ipmitool]\n", ISOL_ESCAPE_CHARACTER);
492
492
                                suspendSelf(1); /* Restore tty back to raw */
493
493
                                continue;
494
494
 
495
495
                        case 'X' - 64:
496
 
                                printf("%c^X [suspend ipmitool]\r\n", ISOL_ESCAPE_CHARACTER);
 
496
                                printf("%c^X [suspend ipmitool]\n", ISOL_ESCAPE_CHARACTER);
497
497
                                suspendSelf(0); /* Don't restore to raw mode */
498
498
                                continue;
499
499
 
500
500
                        case 'B':
501
 
                                printf("%cb [send break]\r\n", ISOL_ESCAPE_CHARACTER);
 
501
                                printf("%cb [send break]\n", ISOL_ESCAPE_CHARACTER);
502
502
                                sendBreak(intf);
503
503
                                continue;
504
504
 
752
752
        /* response contain 4 additional bytes : 80 01 32 ff
753
753
           Don't know what to use them for yet... */
754
754
 
755
 
        printf("[SOL Session operational.  Use %c? for help]\r\n",
 
755
        printf("[SOL Session operational.  Use %c? for help]\n",
756
756
               ISOL_ESCAPE_CHARACTER);
757
757
 
758
758
        /*