The manual says: "Unlike Shell mode, Term mode does not track the current directory by examining your input.  But some shells can tell Term what the . . .