Optical switching was observed within a pulse train during prism coupling into a nonlinear potassium-ion-exchanged semiconductor-doped-glass waveguide with modified composition. An interpretation of the observed phenomenon is given in terms of a slow (probably thermal) nonlinearity.