diff --git a/README b/README index d77968a..9b7fab1 100644 --- a/README +++ b/README @@ -35,8 +35,9 @@ The following single key commands can be used during the playback: 1 to 0 => mute/unmute channels 1 to 10 ! => unmute all channels ? => display available commands - l => toggle loop mode + Z => display current sequence z => toggle subsong explorer mode + l => toggle loop mode m => display module information i => display combined instrument/sample list I => display instrument list diff --git a/src/commands.c b/src/commands.c index 904c7c6..130f328 100644 --- a/src/commands.c +++ b/src/commands.c @@ -184,6 +184,9 @@ void read_command(xmp_context handle, struct xmp_module_info *mi, struct control case 'l': ctl->loop ^= 1; break; + case 'Z': + ctl->cur_seq = 1; + break; case 'z': ctl->explore ^= 1; break; diff --git a/src/common.h b/src/common.h index e464fdd..b3ad6ba 100644 --- a/src/common.h +++ b/src/common.h @@ -42,6 +42,7 @@ struct control { int display; /* Info display flag */ int sequence; /* Current sequence */ int explore; /* Play all sequences */ + int cur_seq; /* Display current sequence */ }; diff --git a/src/info.c b/src/info.c index b185c31..4a12dbf 100644 --- a/src/info.c +++ b/src/info.c @@ -27,8 +27,9 @@ void info_help(void) " 1 - 0 Mute/unmute channels\n" " ! Unmute all channels\n" " ? Display available commands\n" -" l Toggle loop mode\n" +" Z Display current sequence\n" " z Toggle subsong explorer mode\n" +" l Toggle loop mode\n" " m Display module information\n" " i Display combined instrument/sample list\n" " I Display instrument list\n" diff --git a/src/main.c b/src/main.c index 850a4b3..b5a8484 100644 --- a/src/main.c +++ b/src/main.c @@ -424,6 +424,11 @@ int main(int argc, char **argv) control.display = 0; refresh_status = 1; } + + if (control.cur_seq) { + info_message("Current sequence: %d (start at position %02X)", control.sequence, mi.seq_data[control.sequence].entry_point); + control.cur_seq = 0; + } } if (opt.max_time > 0 && diff --git a/src/xmp.1 b/src/xmp.1 index 978baf1..83c0f64 100644 --- a/src/xmp.1 +++ b/src/xmp.1 @@ -200,10 +200,12 @@ Mute/unmute channels 1 to 10\&. Unmute all channels\&. .IP "\fB?\fP" Display available commands\&. -.IP "\fBl\fP" -Toggle module/sequence looping\&. +.IP "\fBZ\fP" +Display current sequence\&. .IP "\fBz\fP" Toggle subsong explorer mode\&. +.IP "\fBl\fP" +Toggle module/sequence looping\&. .IP "\fBm\fP" Display module information\&. .IP "\fBi\fP"