From de10e555a2fae20e16f8380eb13d1ee8332d2d35 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Thu, 5 May 2011 18:57:02 +0000 Subject: [PATCH] [343421] [dstore] Man page was not displayed properly in the shell --- .../dstore/universal/miners/command/OutputHandler.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/OutputHandler.java b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/OutputHandler.java index 73b27b52544..1b739f18321 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/OutputHandler.java +++ b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/OutputHandler.java @@ -23,6 +23,7 @@ * David McKnight (IBM) [309338] [dstore] z/OS USS - invocation of 'env' shell command returns inconsistently organized output * David McKnight (IBM) [312415] [dstore] shell service interprets < and > sequences - handle old client/new server case * David McKnight (IBM) [341366] [dstore][shells] codepage IBM-1141 has faulty display of \ character + * David McKnight (IBM) [343421] [dstore] Man page was not displayed properly in the shell *******************************************************************************/ package org.eclipse.rse.internal.dstore.universal.miners.command; @@ -143,10 +144,14 @@ public class OutputHandler extends Handler { switch (currChar) { case '&' : - output.append("&"); + output.append("&"); //$NON-NLS-1$ break; case ';' : - output.append(";"); + output.append(";"); //$NON-NLS-1$ + break; + case '\b': // special case for backspace control char + int len = output.length()-1; + if (len>=0) output.deleteCharAt(len); break; default : output.append(currChar);